Skip to content

Commit f6449ef

Browse files
chore(git-harness): add CI, license, readme, and wrapper placeholders
Co-authored-by: Ben Schellenberger <bschellenberger2600@users.noreply.github.com>
1 parent a00c05d commit f6449ef

6 files changed

Lines changed: 87 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: actions/setup-go@v5
19+
with:
20+
go-version-file: go.mod
21+
cache: true
22+
23+
- name: Check gofmt
24+
run: test -z "$(gofmt -l git safety)"
25+
26+
- name: Build
27+
run: go build ./...
28+
29+
- name: Vet
30+
run: go vet ./...
31+
32+
- name: Test
33+
run: go test -race -count=1 ./...

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Local reference clones (not part of this module)
2+
/mnt/

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 Benjamin Schellenberger
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# git-harness
2+
3+
Go library extracted from [git-fire](https://github.com/git-fire/git-fire): subprocess-oriented git helpers and small safety utilities.
4+
5+
**Module:** `github.com/git-fire/git-harness`
6+
7+
## Packages
8+
9+
- **`git`** — repository scanning, status, commits, pushes, worktrees, and related helpers.
10+
- **`safety`** — redaction and secret-pattern scanning helpers used by git error paths.
11+
12+
## Requirements
13+
14+
- Go **1.24**+ (see `go.mod`).
15+
- **`git`** on `PATH` for tests and runtime (package shells out to the git binary).
16+
17+
## Development
18+
19+
```bash
20+
go build ./...
21+
go vet ./...
22+
go test -race -count=1 ./...
23+
```
24+
25+
## Stability
26+
27+
`v0.x` releases may change APIs; pin a minor or patch version in consumers.
28+
29+
## License
30+
31+
MIT — see [LICENSE](LICENSE).

wrappers/java/.gitkeep

Whitespace-only changes.

wrappers/python/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)