| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
Also add a test. Make both the pre-order and post-order tests not sort
commits, to actually test the order in which the commit history is
walked.
Fixes #223.
|
|\
| |
| | |
project: move imports from srcd.works to gopkg.in
|
| | |
|
|/
|
|
| |
To be able to fix #261 we will move again to gopkg.in before v4 stable release.
|
|\
| |
| | |
difftree: simplify hash comparison with deprecated files modes
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Difftree hash comparisson was quite complex because the hashes of
deprecated files were diferent from the hashes of regular files. But
git's difftree really treat them as equal.
This patch fix this by making treenoder return the same hash for regular
files than for deprecated files; now the hash comparison function is
just a bytes.Equal call.
|
|\ \
| |/
|/| |
improve git package documentation (fix #231)
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Return values of Read not checked (fix #65)
|
| |/ |
|
|\ \
| |/
|/| |
issue #274: new filemode package
|
| | |
|
| | |
|
|\ \
| |/
|/| |
_examples: improve documentation (fix #238)
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Remove TODOs from documentation
|
| |/ |
|
|\ \
| |/
|/| |
plumbing/revlist: input as a slice of hashes instead of commits
|
| |
| |
| |
| |
| |
| |
| | |
- Now the input of the method Objects inside revlist package is a slice of hashes instead of commits. Hashes can be from Blobs, Trees and Commits objects.
- ObjectStorer now is used to obtain the object content using hashes slice.
- This PR fix #222. Now a test into upload_pack_test.go file is not skipped anymore.
- Remove code from remote.go and server.go that is not necessary.
|
|\ \
| | |
| | | |
plumbing/cache: specify units in memory size (Fix #234)
|
| |/ |
|
|\ \
| |/
|/| |
plumbing: improve documentation (Fix #242)
|
| | |
|
|\ \
| | |
| | | |
plumbing/object: move difftree to object package
|
| | | |
|
|/ /
| |
| |
| |
| | |
- To avoid ciclic dependency errors, we move all the difftree files to object package.
- Added Diff method to Tree object.
|
|\ \
| | |
| | | |
Add fast_finish flag to travis configuration
|
| |/
| |
| |
| |
| |
| |
| | |
This flag allows us to improve the time spent in travis test execution if:
- A build job fails, the build is mark as failed immediately, not waiting to finish the rest of the jobs.
- All Build jobs pass. Travis will not wait to Allowed failures jobs to mark the PR as OK.
|
|\ \
| | |
| | | |
plumbing/storer: referenceIterator now returns the error if any
|
| |/ |
|
|\ \
| |/
|/| |
Fix issue 279
|
| |
| |
| |
| | |
Fix issue #279.
|
|/ |
|
|
|
|
|
|
|
|
|
| |
Fix #275 .
It was not possible to write a test for this issue as the original fsnoder didn't support filenames with length > 1. Therefore this patch has 3 commits:
add support for long filenames in fsnoder.
add a test case for the issue using the new long filenames from step 1.
fix the issue by comparing paths level by level instead of lexigographically over the whole path.
|
|\
| |
| | |
travis update to 1.8 and makefile silence commands
|
| | |
|
|\ \
| |/
|/| |
plumbing/transport: git, error on empty SSH_AUTH_SOCK
|
| | |
|
| | |
|
|/ |
|
|\
| |
| | |
cache: move package to plumbing
|
| |
| |
| |
| | |
Because cache package is only intended to be used at internal level, we move it to the plumbing package.
|
|\ \
| | |
| | | |
cshared: remove directory (Fix #236)
|
| |/
| |
| |
| | |
If some day this code is needed, we can go back into the commit history and get it.
|
|\ \
| |/
|/| |
Submodules init and update
|
| |\
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Last PR to fix #82:
This PR modifies the difftree package itself. The old version extracted the files in both trees and compare them by hand. The new version turn the trees into merkletrie.Noders and call the merkletrie.Difftree function on them.
How to review this PR:
treenoder.go: defines the treeNoder type that wraps a git.Tree and implements merkletrie.Noder.
change.go: defines the type of the output of a difftree operation. The type is the same as before, but I have moved it into its own file to keep the package organized. The old package defines the Action type too (insert, delete, modify), now, we reuse merkletrie.Action and it is no longer a field, but a method.
change_adaptor.go: defines functions to turn merkletrie.Changes into difftree.Changes.
difftree.go: before this patch this file holds all the logic to do a difftree, now it just turns the git.Trees into treeNoders, call merkletrie.difftree on them, and turns the resulting merkletrie.Changes into difftree.Changes.
The only interesting piece of code here is that noders don't have the concept of mode (file permissions). The treenoder type codifies git.Tree modes into the merkletrie.Noder hash, so changes in the mode of a file are detected as modifications, just as the original git diff-tree command does.
|