modulepackage
0.0.0-20241212235005-25f0e8ad47ad
Repository: https://github.com/aviator-co/niche-git.git
Documentation: pkg.go.dev
# README
niche-git
niche-git is a niche git utility.
Motivation
Git protocol has been evolved to support more advanced operations. However, in order to harness that capability, C-git client is not enough in some cases. This project provides a utility for such niche use cases.
How to use it
Getting modified files
go run cmd/niche-git/main.go get-modified-files \
--repo-url https://github.com/git/git \
--commit-hash1 3c2a3fdc388747b9eaf4a4a4f2035c1c9ddb26d0 \
--commit-hash2 efb050becb6bc703f76382e1f1b6273100e6ace3
With authn:
go run cmd/niche-git/main.go get-modified-files \
--repo-url https://github.com/draftcode/some-private-repo \
--commit-hash1 998122b45e63b2999d57a1af9e74761c0524e932 \
--commit-hash2 f27a58920f7319cc7b62e55cf3095d1ee2ab1dde \
--basic-authz-user x-access-token \
--basic-authz-password "$(gh auth token)"
Get commits
go run cmd/niche-git/main.go get-commits \
--repo-url https://github.com/git/git \
--want-commit-hashes 3c2a3fdc388747b9eaf4a4a4f2035c1c9ddb26d0 \
--have-commit-hashes efb050becb6bc703f76382e1f1b6273100e6ace3
List refs
go run cmd/niche-git/main.go ls-refs \
--repo-url https://github.com/git/git \
--ref-prefixes refs/heads/
Adding a license header
addlicense -c "Aviator Technologies, Inc." -l mit -s=only .
# Functions
No description provided by the author
No description provided by the author
FetchModifiedFiles returns the list of files that were modified between two commits.
No description provided by the author
No description provided by the author
PushSquashCherryPick creates a new commit with the changes between the two commits and push to the specified ref.
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author