aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1029 from wlynch/signer-fixPaulo Gomes2024-02-214-35/+94
|\ | | | | Signer: fix usage of crypto.Signer interface
| * git: signer, fix usage of crypto.Signer interfaceBilly Lynch2024-02-134-35/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | crypto.Signer was incorrectly used before. Signer documentation says that Signer.Sign should be used on digests, whereas we were using this on message bodies. To fix this, create our own Signer interface (+ signableObject borrowed from #705) that describes more accurately what we want. As before, the expectation is that signer implementations only need to worry about acting on encoded message bodies rather than needing to encode objects themselves. This is technically a breaking change from the previous Signer implementation, but since this is new and hasn't made it into cut release yet, this seems like an acceptible change. Also adds example test showing how signers can be made (uses base64 for consistent outputs).
* | Merge pull request #446 from dlambda/co-brPaulo Gomes2024-02-213-35/+124
|\ \ | |/ |/| checkout-branch example
| * _examples: add example testing to `make test` as suggested by pjbgfDavid Lamb2024-02-211-0/+1
| |
| * _examples: fix other example args + more ignores so example testingDavid Lamb2024-02-211-0/+6
| | | | | | | | completes
| * _examples: PR feedback - use plumbing instead of sprintfDavid Lamb2024-02-211-1/+1
| | | | | | | | Co-authored-by: Johannes Huning <johannes.huning@gmail.com>
| * _examples: original PR - add checkout-branchDavid Lamb2024-02-212-35/+117
|/
* Merge pull request #1027 from ↵Paulo Gomes2024-02-082-10/+10
|\ | | | | | | | | go-git/dependabot/go_modules/golang.org/x/net-0.21.0 build: bump golang.org/x/net from 0.20.0 to 0.21.0
| * build: bump golang.org/x/net from 0.20.0 to 0.21.0dependabot[bot]2024-02-082-10/+10
|/ | | | | | | | | | | | | Bumps [golang.org/x/net](https://github.com/golang/net) from 0.20.0 to 0.21.0. - [Commits](https://github.com/golang/net/compare/v0.20.0...v0.21.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
* Merge pull request #1018 from prskr/1017-readattributes-does-not-close-filePaulo Gomes2024-02-052-6/+11
|\ | | | | plumbing: format/gitattributes, close file in ReadAttributesFile
| * plumbing: format/gitattributes, close file in ReadAttributesFilePeter Kurfer2024-02-052-6/+11
| | | | | | | | Fixes #1017
* | Merge pull request #1022 from grinish21/doc/404-linkPaulo Gomes2024-02-051-1/+2
|\ \ | |/ |/| _example: fix 404 link and added ssh-agent clone link
| * _example: fix 404 link and added ssh-agent clone linkGRINISH NEPAL2024-02-041-1/+2
|/
* Merge pull request #1007 from pjbgf/go-diffPaulo Gomes2024-01-262-4/+4
|\ | | | | build: Bump github.com/sergi/go-diff
| * build: Bump github.com/sergi/go-diffPaulo Gomes2024-01-222-4/+4
| | | | | | | | Signed-off-by: Paulo Gomes <paulo.gomes@suse.com>
* | Merge pull request #994 from moranCohen26/supportFastAddPathPaulo Gomes2024-01-234-10/+294
|\ \ | | | | | | Worktree.AddWithOptions: add skipStatus option when providing a specific path
| * | git: Worktree.AddWithOptions, add skipStatus option. #993Moran Cohen2024-01-174-11/+294
| |/
* | Merge pull request #996 from wlynch/signer-configPaulo Gomes2024-01-233-11/+48
|\ \ | | | | | | Add crypto.Signer option to CommitOptions.
| * | git: worktree_commit, Add crypto.Signer option to CommitOptions.Billy Lynch2024-01-183-11/+48
| |/ | | | | | | | | | | | | | | | | | | | | | | | | This change adds a new crypto.Signer option to CommitOptions as an alternative to SignKey to allow alternative commit signers to be used. This change byitself does not add other signing methods (e.g. ssh, x509, gitsign), but gives callers the ability to add their own. This roughly follows git's sign_buffer approach where go-git handles the commit message body encoding, and hands off the encoded []byte to the signing implementation for the signature to be returned. Signed-off-by: Billy Lynch <billy@chainguard.dev>
* | Merge pull request #1004 from ↵Paulo Gomes2024-01-172-3/+3
|\ \ | | | | | | | | | | | | go-git/dependabot/go_modules/github.com/ProtonMail/go-crypto-1.0.0 build: bump github.com/ProtonMail/go-crypto from 0.0.0-20230828082145-3c4c8a2d2371 to 1.0.0
| * | build: bump github.com/ProtonMail/go-cryptodependabot[bot]2024-01-172-3/+3
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [github.com/ProtonMail/go-crypto](https://github.com/ProtonMail/go-crypto) from 0.0.0-20230828082145-3c4c8a2d2371 to 1.0.0. - [Release notes](https://github.com/ProtonMail/go-crypto/releases) - [Commits](https://github.com/ProtonMail/go-crypto/commits/v1.0.0) --- updated-dependencies: - dependency-name: github.com/ProtonMail/go-crypto dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
* | Merge pull request #987 from Jerry-yz/masterPaulo Gomes2024-01-162-6/+6
|\ \ | | | | | | object: fix variable defaultUtf8CommitMessageEncoding name spell error
| * | plumbing: fix variable defaultUtf8CommitMessageEncoding name spell errorJerry-yz2024-01-152-6/+6
| |/
* | Merge pull request #998 from pjbgf/ssh-agent-examplePaulo Gomes2024-01-152-0/+37
|\ \ | |/ |/| Add example for git clone using ssh-agent
| * _examples: Add git clone using ssh-agentPaulo Gomes2024-01-132-0/+37
|/ | | | Signed-off-by: Paulo Gomes <paulo.gomes@suse.com>
* Merge pull request #992 from codablock/update-commentPaulo Gomes2024-01-101-0/+4
|\ | | | | utils: update comment in node.go's Hash()
| * utils: update comment in node.go's Hash()Alexander Block2024-01-101-0/+4
|/ | | | This reflects the lazy hash calculation and the implications of this.
* Merge pull request #825 from candid82/masterPaulo Gomes2024-01-101-39/+37
|\ | | | | Calculate filesystem node's hash lazily.
| * utils: filesystem, Calculate filesystem node's hash lazily.Roman Bataev2023-08-211-39/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The main motivation behind this change is to speed up status operation. Currently it's very slow, especially for repositories with lots of ignored files (e.g. node.js repository with node_modules directory). One of the reasons for this slowness is the fact that traversing filesystem involves calculating file hashes for all files, even if those hashes are not needed in the end because the files are in gitignore. On my machine, for a random repository with sizable (ignored) node_modules directory this changes bring the execution time for Worktree.Status from ~3.5s to ~1.4s. This is still very slow, but a significant improvement. A better fix (instead of or in addition to this one) would be to avoid traversing ignored files in the first place. However, such change seem to be more intrusive and will require much deeper understanding of the codebase.
* | Merge pull request #991 from ↵Paulo Gomes2024-01-092-7/+7
|\ \ | | | | | | | | | | | | go-git/dependabot/go_modules/golang.org/x/net-0.20.0 build: bump golang.org/x/net from 0.19.0 to 0.20.0
| * | build: bump golang.org/x/net from 0.19.0 to 0.20.0dependabot[bot]2024-01-092-7/+7
|/ / | | | | | | | | | | | | | | | | | | | | | | | | Bumps [golang.org/x/net](https://github.com/golang/net) from 0.19.0 to 0.20.0. - [Commits](https://github.com/golang/net/compare/v0.19.0...v0.20.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
* | Merge pull request #989 from ↵Paulo Gomes2024-01-082-2/+3
|\ \ | | | | | | | | | | | | go-git/dependabot/go_modules/cli/go-git/github.com/cloudflare/circl-1.3.7 build: bump github.com/cloudflare/circl from 1.3.3 to 1.3.7 in /cli/go-git
| * | build: bump github.com/cloudflare/circl in /cli/go-gitdependabot[bot]2024-01-082-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [github.com/cloudflare/circl](https://github.com/cloudflare/circl) from 1.3.3 to 1.3.7. - [Release notes](https://github.com/cloudflare/circl/releases) - [Commits](https://github.com/cloudflare/circl/compare/v1.3.3...v1.3.7) --- updated-dependencies: - dependency-name: github.com/cloudflare/circl dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
* | | Merge pull request #988 from ↵Paulo Gomes2024-01-082-2/+3
|\ \ \ | |/ / |/| | | | | | | | go-git/dependabot/go_modules/github.com/cloudflare/circl-1.3.7 build: bump github.com/cloudflare/circl from 1.3.3 to 1.3.7
| * | build: bump github.com/cloudflare/circl from 1.3.3 to 1.3.7dependabot[bot]2024-01-082-2/+3
|/ / | | | | | | | | | | | | | | | | | | | | | | | | Bumps [github.com/cloudflare/circl](https://github.com/cloudflare/circl) from 1.3.3 to 1.3.7. - [Release notes](https://github.com/cloudflare/circl/releases) - [Commits](https://github.com/cloudflare/circl/compare/v1.3.3...v1.3.7) --- updated-dependencies: - dependency-name: github.com/cloudflare/circl dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
* | Merge pull request #984 from ↵Paulo Gomes2024-01-052-3/+3
|\ \ | | | | | | | | | | | | go-git/dependabot/go_modules/golang.org/x/sys-0.16.0 build: bump golang.org/x/sys from 0.15.0 to 0.16.0
| * | build: bump golang.org/x/sys from 0.15.0 to 0.16.0dependabot[bot]2024-01-052-3/+3
|/ / | | | | | | | | | | | | | | | | | | | | | | | | Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.15.0 to 0.16.0. - [Commits](https://github.com/golang/sys/compare/v0.15.0...v0.16.0) --- updated-dependencies: - dependency-name: golang.org/x/sys dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
* | Merge pull request #979 from aymanbagabas/climodPaulo Gomes2023-12-221-1/+1
|\ \ | | | | | | git: cli, fix module name
| * | git: cli, fix module nameAyman Bagabas2023-12-211-1/+1
| | | | | | | | | | | | | | | | | | | | | Fix the cli module package name Fixes: https://github.com/go-git/go-git/issues/952 Fixes: https://github.com/go-git/go-git/pull/914
* | | Merge pull request #975 from ↵Paulo Gomes2023-12-212-3/+3
|\ \ \ | |/ / |/| | | | | | | | go-git/dependabot/go_modules/cli/go-git/golang.org/x/crypto-0.17.0 build: bump golang.org/x/crypto from 0.16.0 to 0.17.0 in /cli/go-git
| * | build: bump golang.org/x/crypto from 0.16.0 to 0.17.0 in /cli/go-gitdependabot[bot]2023-12-192-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.16.0 to 0.17.0. - [Commits](https://github.com/golang/crypto/compare/v0.16.0...v0.17.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
* | | Merge pull request #976 from ↵Paulo Gomes2023-12-192-8/+3
|\ \ \ | | | | | | | | | | | | | | | | go-git/dependabot/go_modules/github.com/gliderlabs/ssh-0.3.6 build: bump github.com/gliderlabs/ssh from 0.3.5 to 0.3.6
| * | | build: bump github.com/gliderlabs/ssh from 0.3.5 to 0.3.6dependabot[bot]2023-12-192-8/+3
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [github.com/gliderlabs/ssh](https://github.com/gliderlabs/ssh) from 0.3.5 to 0.3.6. - [Release notes](https://github.com/gliderlabs/ssh/releases) - [Commits](https://github.com/gliderlabs/ssh/compare/v0.3.5...v0.3.6) --- updated-dependencies: - dependency-name: github.com/gliderlabs/ssh dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
* | | Merge pull request #973 from ↵Paulo Gomes2023-12-192-3/+3
|\ \ \ | | | | | | | | | | | | | | | | go-git/dependabot/github_actions/github/codeql-action-3 build: bump github/codeql-action from 2 to 3
| * | | build: bump github/codeql-action from 2 to 3dependabot[bot]2023-12-182-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3. - [Release notes](https://github.com/github/codeql-action/releases) - [Commits](https://github.com/github/codeql-action/compare/v2...v3) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
* | | | Merge pull request #974 from ↵Paulo Gomes2023-12-192-3/+3
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | go-git/dependabot/go_modules/golang.org/x/crypto-0.17.0 build: bump golang.org/x/crypto from 0.16.0 to 0.17.0
| * | | build: bump golang.org/x/crypto from 0.16.0 to 0.17.0dependabot[bot]2023-12-192-3/+3
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.16.0 to 0.17.0. - [Commits](https://github.com/golang/crypto/compare/v0.16.0...v0.17.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
* | | Merge pull request #972 from ↵Paulo Gomes2023-12-181-1/+1
|\ \ \ | |/ / |/| | | | | | | | go-git/dependabot/github_actions/actions/upload-artifact-4 build: bump actions/upload-artifact from 3 to 4
| * | build: bump actions/upload-artifact from 3 to 4dependabot[bot]2023-12-181-1/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
* | Merge pull request #966 from aymanbagabas/taghash-checkoutPaulo Gomes2023-12-144-17/+49
|\ \ | | | | | | git: worktree checkout tag hash id (#959)