proxy.golang.org : github.com/scjalliance/go-git
Package blame contains blaming functionality for files in the repo. Blaming a file is finding what commit was the last to modify each of the lines in the file, therefore the output of a blaming operation is usualy a slice of commits, one commit per line in the file. This package also provides a pretty print function to output the results of a blame in a similar format to the git-blame command. Package revlist allows to create the revision history of a file, this is, the list of commits in the past that affect the file. The general idea is to traverse the git commit graph backward, flattening the graph into a linear history, and skipping commits that are irrelevant for the particular file. There is no single answer for this operation. The git command "git-revlist" returns different histories depending on its arguments and some internal heuristics. The current implementation tries to get something similar to what you whould get using git-revlist. See the failing tests for some insight about how the current implementation and git-revlist differs. Another way to get the revision history for a file is: git log --follow -p -- file
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/scjalliance/go-git
License: MIT
Latest release: over 9 years ago
First release: over 9 years ago
Namespace: github.com/scjalliance
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 29 days ago