Skip to content

Commit e39fb82

Browse files
Merge pull request #90 from swift-developer-tools/develop
swift-libgit2 1.0.0
2 parents faa7762 + bef9ce0 commit e39fb82

8,713 files changed

Lines changed: 113806 additions & 128 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODE_OF_CONDUCT.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Code of Conduct
2+
3+
In the interest of fostering an open and welcoming environment, we as
4+
contributors and maintainers pledge to make participation in the project and
5+
its community a harassment-free experience for everyone, regardless of age,
6+
body size, disability, ethnicity, sex characteristics, gender identity and
7+
expression, level of experience, education, socio-economic status, nationality,
8+
personal appearance, race, religion, or sexual identity and orientation.
9+
10+
Examples of behavior that contributes to creating a positive environment
11+
include:
12+
13+
- Respecting the purpose of the project and its community.
14+
- Engaging kindly and honestly with others.
15+
- Respecting different viewpoints and experiences.
16+
- Taking responsibility for our actions and contributions.
17+
- Gracefully giving and accepting constructive feedback.
18+
- Behaving in ways that promote and sustain the well-being of the project and
19+
its community.
20+
21+
Examples of unacceptable behavior include:
22+
23+
- Harassment. Violating explicitly expressed boundaries or engaging in
24+
unnecessary personal attention after any clear request to stop.
25+
- Character attacks. Making insulting, demeaning, or pejorative comments
26+
directed at a community member or group of people.
27+
- Stereotyping or discrimination. Characterizing anyone’s personality or
28+
behavior on the basis of immutable identities or traits.
29+
- Sexualization. Behaving in a way that would generally be considered
30+
inappropriately intimate in the context or purpose of the project and its
31+
community.
32+
- Violating confidentiality. Sharing or acting on someone's personal or private
33+
information without their permission.
34+
- Endangerment. Causing, encouraging, or threatening violence or other harm
35+
toward any person or group.
36+
- Behaving in other ways that threaten the well-being of the project and
37+
its community.
38+
- Misleading identity. Impersonating someone else for any reason, or pretending
39+
to be someone else to evade enforcement actions.
40+
- Failing to credit sources. Not properly crediting the sources of content you
41+
contribute.
42+
- Promotional materials. Sharing marketing or other commercial content in a way
43+
that is outside the norms of the project and its community.
44+
- Irresponsible communication. Presenting content which includes, links, or
45+
describes any restricted behaviors.
46+
47+
Project maintainers have the right to remove, edit, or reject comments, commits,
48+
code, wiki edits, issues, and other contributions that are not aligned to this
49+
Code of Conduct, or to ban temporarily or permanently any contributor for other
50+
behaviors that they deem inappropriate, threatening, offensive, or harmful.
51+
52+
This Code of Conduct applies within all project spaces, including (but not
53+
limited to) source code repositories, bug trackers, web sites, documentation,
54+
and online forums. It also applies when an individual is representing the
55+
project or its community in public spaces. Examples of representing the project
56+
or its community include using an official project email address, posting via
57+
an official social media account, or acting as an appointed representative at
58+
an online or offline event.
59+
60+
This Code of Conduct is adapted from the Contributor Covenant,
61+
[Version 3.0](https://www.contributor-covenant.org/version/3/0/).

.github/CONTRIBUTING.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Contributing
2+
3+
Thank you for helping us improve swift-libgit2.
4+
5+
## Reporting Issues
6+
7+
Before opening an issue, search
8+
[existing issues](https://github.com/swift-developer-tools/swift-libgit2/issues)
9+
to avoid duplicates. If a similar issue already exists, add relevant details to
10+
the existing discussion rather than creating a new issue.
11+
12+
The following issue types are available:
13+
14+
- Bug report: Report unexpected or incorrect behavior, but not a crash.
15+
- Crash report: Report a crash or an unexpected termination.
16+
- Feature request: Request a new feature or an improvement to an existing
17+
feature.
18+
19+
When requesting a feature, keep in mind that swift-libgit2 provides only direct
20+
bindings to libgit2. If the feature does not exist in libgit2, it will not be
21+
implemented in swift-libgit2. Experimental libgit2 features will be added to
22+
swift-libgit2 once they become stable in libgit2.
23+
24+
## Pull Requests
25+
26+
We are not accepting external contributions at this time, but bug reports,
27+
crash reports, and feature requests are always welcome.
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# ===----------------------------------------------------------------------===//
2+
#
3+
# This source file is part of the swift-libgit2 open source project.
4+
#
5+
# Copyright (c) Margins Technologies LLC.
6+
# Licensed under the Apache License, Version 2.0.
7+
#
8+
# ===----------------------------------------------------------------------===//
9+
10+
name: ⚠️ Bug Report
11+
description: >
12+
Report unexpected or incorrect behavior, but not a crash.
13+
labels:
14+
- bug
15+
- triage
16+
body:
17+
- type: textarea
18+
attributes:
19+
label: Description
20+
description: >
21+
A clear and concise description of what happened.
22+
validations:
23+
required: true
24+
- type: textarea
25+
attributes:
26+
label: Reproduction
27+
description: >
28+
Step-by-step instructions to consistently reproduce the issue.
29+
validations:
30+
required: true
31+
- type: textarea
32+
attributes:
33+
label: Expected Behavior
34+
description: >
35+
A clear and concise description of the expected behavior.
36+
validations:
37+
required: true
38+
- type: input
39+
attributes:
40+
label: Package Version
41+
description: >
42+
The swift-libgit2 version used when the issue occurred.
43+
placeholder: e.g. swift-libgit2 1.0.0
44+
validations:
45+
required: true
46+
- type: input
47+
attributes:
48+
label: Swift Version
49+
description: >
50+
The Swift version used when the issue occurred.
51+
placeholder: e.g. Swift 6.2
52+
validations:
53+
required: true
54+
- type: input
55+
attributes:
56+
label: Platform and Version
57+
description: >
58+
The iOS, iPadOS, or macOS version used when the issue occurred.
59+
placeholder: e.g. macOS 26.0.1
60+
validations:
61+
required: true
62+
- type: textarea
63+
attributes:
64+
label: Additional Information
65+
description: >
66+
Additional context that may help. For example, logs or error messages.
67+
validations:
68+
required: false

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# ===----------------------------------------------------------------------===//
2+
#
3+
# This source file is part of the swift-libgit2 open source project.
4+
#
5+
# Copyright (c) Margins Technologies LLC.
6+
# Licensed under the Apache License, Version 2.0.
7+
#
8+
# ===----------------------------------------------------------------------===//
9+
10+
blank_issues_enabled: false
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# ===----------------------------------------------------------------------===//
2+
#
3+
# This source file is part of the swift-libgit2 open source project.
4+
#
5+
# Copyright (c) Margins Technologies LLC.
6+
# Licensed under the Apache License, Version 2.0.
7+
#
8+
# ===----------------------------------------------------------------------===//
9+
10+
name: 💥 Crash Report
11+
description: >
12+
Report a crash or an unexpected termination.
13+
labels:
14+
- bug
15+
- crash
16+
- triage
17+
body:
18+
- type: textarea
19+
attributes:
20+
label: Description
21+
description: >
22+
A clear and concise description of what happened.
23+
validations:
24+
required: true
25+
- type: textarea
26+
attributes:
27+
label: Reproduction
28+
description: >
29+
Step-by-step instructions to consistently reproduce the issue.
30+
validations:
31+
required: true
32+
- type: textarea
33+
attributes:
34+
label: Stack Trace
35+
description: >
36+
The complete stack trace.
37+
validations:
38+
required: true
39+
- type: textarea
40+
attributes:
41+
label: Expected Behavior
42+
description: >
43+
A clear and concise description of the expected behavior.
44+
validations:
45+
required: true
46+
- type: input
47+
attributes:
48+
label: Package Version
49+
description: >
50+
The swift-libgit2 version used when the issue occurred.
51+
placeholder: e.g. swift-libgit2 1.0.0
52+
validations:
53+
required: true
54+
- type: input
55+
attributes:
56+
label: Swift Version
57+
description: >
58+
The Swift version used when the issue occurred.
59+
placeholder: e.g. Swift 6.2
60+
validations:
61+
required: true
62+
- type: input
63+
attributes:
64+
label: Platform and Version
65+
description: >
66+
The iOS, iPadOS, or macOS version used when the issue occurred.
67+
placeholder: e.g. macOS 26.0.1
68+
validations:
69+
required: true
70+
- type: textarea
71+
attributes:
72+
label: Additional Information
73+
description: >
74+
Additional context that may help. For example, logs or error messages.
75+
validations:
76+
required: false
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# ===----------------------------------------------------------------------===//
2+
#
3+
# This source file is part of the swift-libgit2 open source project.
4+
#
5+
# Copyright (c) Margins Technologies LLC.
6+
# Licensed under the Apache License, Version 2.0.
7+
#
8+
# ===----------------------------------------------------------------------===//
9+
10+
name: ✨ Feature Request
11+
description: >
12+
Request a new feature or an improvement to an existing feature.
13+
labels:
14+
- enhancement
15+
- triage
16+
body:
17+
- type: textarea
18+
attributes:
19+
label: Description
20+
description: >
21+
A clear and concise description of the new feature or change.
22+
validations:
23+
required: true
24+
- type: textarea
25+
attributes:
26+
label: Motivation
27+
description: >
28+
A clear and concise description of how the new feature or change would
29+
benefit users.
30+
validations:
31+
required: true
32+
- type: textarea
33+
attributes:
34+
label: Additional Information
35+
description: >
36+
Additional context that may help.
37+
validations:
38+
required: false

.github/workflows/build-frameworks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111
jobs:
1212
build:
1313
if: "!contains(github.event.head_commit.message, '[automated]')"
14-
runs-on: macos-14
14+
runs-on: macos-latest
1515

1616
steps:
1717
- name: Checkout public repo

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
xcuserdata/
66
*.xcuserstate
77
DerivedData/
8+
.swiftpm/xcode/xcshareddata/
89
.swiftpm/configuration/registries.json
910
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
1011
.netrc

.swiftpm/swift-libgit2.xctestplan

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"configurations" : [
3+
{
4+
"id" : "63F12DEB-4DC1-447C-8642-CB98019778D6",
5+
"name" : "Address Sanitizer",
6+
"options" : {
7+
"addressSanitizer" : {
8+
"detectStackUseAfterReturn" : true,
9+
"enabled" : true
10+
},
11+
"mallocScribbleEnabled" : true,
12+
"undefinedBehaviorSanitizerEnabled" : true
13+
}
14+
},
15+
{
16+
"id" : "91B98A00-3617-4340-9D7B-57D407B58004",
17+
"name" : "Thread Sanitizer",
18+
"options" : {
19+
"threadSanitizerEnabled" : true,
20+
"undefinedBehaviorSanitizerEnabled" : true
21+
}
22+
},
23+
{
24+
"id" : "D2514B8A-2CEE-491E-B2A9-5FF4992FD198",
25+
"name" : "Malloc Guard Edges",
26+
"options" : {
27+
"mallocGuardEdgesEnabled" : true,
28+
"mallocScribbleEnabled" : true,
29+
"mallocStackLoggingOptions" : {
30+
"loggingType" : "liveAllocations"
31+
}
32+
}
33+
},
34+
{
35+
"id" : "7CE440AF-0359-4118-8D35-D6528AFA5C78",
36+
"name" : "Hardware Memory Tagging",
37+
"options" : {
38+
"checkedAllocations" : {
39+
"enabled" : true,
40+
"requiresHardwareAcceleration" : false
41+
},
42+
"mallocStackLoggingOptions" : {
43+
"loggingType" : "liveAllocations"
44+
}
45+
}
46+
}
47+
],
48+
"defaultOptions" : {
49+
"mainThreadCheckerDetectionPolicy" : {
50+
"severity" : "failure"
51+
},
52+
"nsZombieEnabled" : true,
53+
"performanceAntipatternCheckerEnabled" : true,
54+
"runtimeIssueDetection" : {
55+
"severity" : "failure"
56+
},
57+
"testExecutionOrdering" : "random",
58+
"threadPerformanceCheckerRuntimeIssueDetection" : {
59+
"severity" : "failure"
60+
}
61+
},
62+
"testTargets" : [
63+
{
64+
"parallelizable" : false,
65+
"target" : {
66+
"containerPath" : "container:",
67+
"identifier" : "SwiftLibgit2Tests",
68+
"name" : "SwiftLibgit2Tests"
69+
}
70+
}
71+
],
72+
"version" : 1
73+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>FILEHEADER</key>
6+
<string>===----------------------------------------------------------------------===//
7+
//
8+
// This source file is part of the swift-libgit2 open source project.
9+
//
10+
// Copyright (c) Margins Technologies LLC.
11+
// Licensed under the Apache License, Version 2.0.
12+
//
13+
//===----------------------------------------------------------------------===//</string>
14+
</dict>
15+
</plist>

0 commit comments

Comments
 (0)