Commit graph

13 commits

Author SHA1 Message Date
Pat Zielinski
d571facb8d *: Add copyright notice to code files
Signed-off-by: Pat Zielinski <70954403+patzielinski@users.noreply.github.com>
2024-09-27 15:28:12 -04:00
Aditya Sirish A Yelgundhalli
fe6d1d343a
*: Drop old gitinterface APIs
This commit also renames ReplacementTreeBuilder to TreeBuilder.

Signed-off-by: Aditya Sirish A Yelgundhalli <ayelgundhall@bloomberg.net>
2024-07-01 10:21:25 -04:00
Aditya Sirish A Yelgundhalli
e871053716 gitinterface: Fixes for executor
Signed-off-by: Aditya Sirish A Yelgundhalli <ayelgundhall@bloomberg.net>
2024-06-13 11:42:27 -04:00
Aditya Sirish A Yelgundhalli
d1ecf8fb70 gitinterface: Clean up repository.execute methods
This commit applies @wlynch's feedback from https://github.com/gittuf/gittuf/pull/383#discussion_r1628088633.

Signed-off-by: Aditya Sirish A Yelgundhalli <ayelgundhall@bloomberg.net>
2024-06-11 16:46:22 -04:00
Aditya Sirish
fb5186d54f
gitinterface: Add change and config management
Signed-off-by: Aditya Sirish <aditya@saky.in>
2024-06-05 18:24:18 -04:00
Aditya Sirish
2fd0988424
dep: Remove vendored copy of go-git
Signed-off-by: Aditya Sirish <aditya@saky.in>
2023-11-29 21:04:54 +05:30
neilnaveen
8692f7a684 Handle Merge Commit in GetFilePathsChangedByCommit
- Changed handling of merge commits to check if one of the parent commits
  matches the current commit. If not we return the sorted diffs between
  the current commit and all parent commits.

Signed-off-by: neilnaveen <42328488+neilnaveen@users.noreply.github.com>
2023-11-11 19:23:08 -06:00
Aditya Sirish
0541411fc1
*: Route GetObject requests through gitinterface
This allows us to perform additional checks in future such as whether an
object is replaced by a replace ref. It also makes it easier to switch
between go-git and another mechanism to invoke Git, such as directly
using the binary.

Signed-off-by: Aditya Sirish <aditya@saky.in>
2023-10-26 11:13:32 -04:00
Billy Lynch
d57191618a
Remove module replace in favor of a package fork.
This removes the sub-go.mod in favor of updating all references to the
third_party/go-git package.

This lets users `go install` from outside of the module.

Signed-off-by: Billy Lynch <billy@chainguard.dev>
2023-10-25 19:25:56 -04:00
Aditya Sirish
a95ec8df43
*: Fix linter issues
This commit fixes issues flagged by the additional linters enabled in
the parent commit.

Signed-off-by: Aditya Sirish <aditya@saky.in>
2023-10-24 16:48:46 -04:00
Pat Zielinski
d0905e7816 Add SPDX License Identifiers to code files
Signed-off-by: Pat Zielinski <70954403+patzielinski@users.noreply.github.com>
2023-10-09 08:09:34 -04:00
Aditya Sirish
b850488960
gitinterface: Changes and commit reachability
* Add functions to track changes introduced by commits or between commits
* Add function to check if a commit knows another using reachability

Signed-off-by: Aditya Sirish <aditya@saky.in>
2023-09-11 15:34:14 -04:00
Aditya Sirish
5bb804a767
gitinterface: Identify changed files
Signed-off-by: Aditya Sirish <aditya@saky.in>
2023-08-18 16:07:45 -04:00