| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
| |
This reverts commit 3127ad9a44a2ee935502816065dfe39f494f583d, reversing
changes made to 73c52edaad2dae256be61bd1dbbab08e1092f58e.
|
|
|
|
|
| |
This reverts commit 53f87846a196c856e00fe825bc5f29551b2ea524, reversing
changes made to bb3a1bfcc62224001d577b933355661259b80854.
|
|\
| |
| | |
Remote.Fetch: support exact SHA1 refspecs
|
| | |
|
| |
| |
| |
| | |
SHA1 ref
|
|\ \
| |/
|/| |
plumbing: object, Fixed the ambiguous implicit conversions causing errors while building .
|
|/ |
|
|\
| |
| | |
plumbing: exact renames detection could leave gaps in the changes
|
|/
|
|
|
|
|
|
|
| |
This fixes an issue where exact renames detection could leave gaps
with nil changes in the added and deleted change slices. That could
lead to panics in the content rename detection and others if the
user had set OnlyExact to true.
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
|
|\
| |
| | |
Cleanup `diff` package
|
|/ |
|
|\
| |
| | |
Remove unnecessary text from comment
|
| | |
|
|\ \
| | |
| | | |
Fix issues in colored diffs
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| |/ /
|/| | |
fix 32 bit build
|
| |/
| |
| |
| | |
Discovered while building on a Raspberry Pi
|
|\ \
| |/
|/| |
Fix typo
|
|/ |
|
|\
| |
| | |
plumbing: object, make renames diff default
|
| |\ |
|
| | | |
|
|\ \ \
| |_|/
|/| | |
Add initial colored diff support
|
|/ / |
|
|\ \
| |/
|/| |
ci: fix CI, git compaitiblity
|
|/ |
|
|\
| |
| | |
storage/filesystem: dotgit, sanity check provided reference path
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
On some operating systems, read() of a directory fd may actually succeed and
return garbage resembling on-disk contents. As a result, dotgit may return
successful from readReferenceFile() when it should in-fact not.
This fixes readReferenceFile() on FreeBSD.
Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
|
|/
|
|
|
|
| |
Specifically, the problem demonstrated is that on some OS (e.g. FreeBSD),
read() on a directory will succeed. The current implementation will accept
that and return incorrect results, rather than rejecting the directory.
|
|\
| |
| | |
plumbing: detect renames by hash and similar content in diff tree
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This commit implements the rename detection algorithms used in the
JGit implementation.
Given a list of changes, additions and deletions are extracted and
matched in two ways:
- By exact hash content: all additions and deletions are grouped by
the content hash and paired with the best match based on the file
mode and file path. All the files that cannot be paired are kept
as regular deletions and additions.
- By similar content: a matrix of addition and deletion pairs with
all possible combinations is created and scored by how similar the
content is between both files as well as how similar the file path
is. The pairs with the best score and whose score is equal or
greater than a threshold are paired and turned into a rename.
All the files that cannot be paired are kept as regular deletions
and additions.
DiffTree and DiffTreeContext will not return the changes with renames
detected for compatibility reasons, although this will change in v6
so that detecting renames is the default behaviour.
A new function DiffTreeWithOptions has been added to configure the
parameters for the rename detection to control the score threshold,
the limit of renames and whether to use similar content detection in
the detection.
More information:
- https://github.com/eclipse/jgit/blob/master/org.eclipse.jgit/src/org/eclipse/jgit/diff/RenameDetector.java
- https://github.com/eclipse/jgit/blob/master/org.eclipse.jgit/src/org/eclipse/jgit/diff/SimilarityRenameDetector.java
- https://github.com/eclipse/jgit/blob/master/org.eclipse.jgit/src/org/eclipse/jgit/diff/SimilarityIndex.java
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
|
|\ \
| |/
|/| |
examples: config, Show how to save config changes
|
|/ |
|
|\
| |
| | |
Fix example's link in README.md
|
|/
|
| |
Fix example's link in README.md. It refers to the old project location.
|
|\
| |
| | |
Change the link of the storer docs
|
|/
|
|
|
| |
Change storer:
- from godoc.org
- to pkg.go.dev
|
|\
| |
| | |
plumbing: format, config.Merged to allow access to local and global config
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
...for reading and writing global (~/.git/config) and reading system (/etc/gitconfig) configs in addition to local repo config
|
|\ \
| | |
| | | |
ci: fix compatibility tests for master
|
|/ /
| |
| |
| | |
Signed-off-by: Javi Fontan <jfontan@gmail.com>
|