Commit graph

16 commits

Author SHA1 Message Date
Aditya Sirish A Yelgundhalli
3639e23219
*: Add gittuf sync
Signed-off-by: Aditya Sirish A Yelgundhalli <ayelgundhall@bloomberg.net>
2025-02-20 17:56:07 -05:00
Aditya Sirish A Yelgundhalli
692f95930d
gitinterface: Support fetching single object
Signed-off-by: Aditya Sirish A Yelgundhalli <ayelgundhall@bloomberg.net>
2025-02-20 13:41:27 -05:00
Aditya Sirish A Yelgundhalli
2923704fa0
gitinterface: Support bare clones
Signed-off-by: Aditya Sirish A Yelgundhalli <ayelgundhall@bloomberg.net>
2025-02-04 11:18:02 -05:00
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
7b89349a0c
gitinterface: Add sync methods
Signed-off-by: Aditya Sirish <aditya@saky.in>
2024-06-05 18:16:20 -04:00
Ghanshyam Thakkar
0e3afe6dbb
clone: display progress on Stdout
Signed-off-by: Ghanshyam Thakkar <shyamthakkar001@gmail.com>
2024-02-02 12:45:56 +05:30
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
c72c4a6fc6 Double Initial Capacity of reSpecs Slice in Fetch
- Double initial capacity of reSpecs slice in Fetch for higher efficiency in
  append operations

Signed-off-by: neilnaveen <42328488+neilnaveen@users.noreply.github.com>
2023-11-01 16:24:53 -05: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
f24f7f27fc
gitinterface: Add fastForwardOnly flag to Fetch
Signed-off-by: Aditya Sirish <aditya@saky.in>
2023-10-11 23:18:07 -04:00
Aditya Sirish
ef38590f91
*: Drop explicit trackRemote option
Now, the remote tracker is always updated. If gitinterface.Fetch is used
with a refName, it assumes the default is to fetch to the same target in
the local repository. By default, it also updates the remote tracker.
For more granular control, FetchRefSpec must be used.

Signed-off-by: Aditya Sirish <aditya@saky.in>
2023-10-11 21:31:28 -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
12a29c17aa
gitinterface: Add syncing features
Signed-off-by: Aditya Sirish <aditya@saky.in>
2023-09-12 13:06:53 -04:00