aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add tests for default config valuesJavi Fontan2018-01-101-0/+9
| | | | Signed-off-by: Javi Fontan <jfontan@gmail.com>
* Set default pack window size in configJavi Fontan2018-01-091-1/+5
| | | | | | | | Config is not initialized with the default window size. Without this the window size is 0 by default and packfile code is unable to generate deltas. Signed-off-by: Javi Fontan <jfontan@gmail.com>
* Merge pull request #710 from wellsjo/patch-1v4.0.0Máximo Cuadros2018-01-081-1/+1
|\ | | | | fix typo
| * fix typoWells Johnston2018-01-081-1/+1
|/
* Merge pull request #700 from jfontan/improvement/support-non-rw-filesystemsMáximo Cuadros2018-01-026-33/+142
|\ | | | | Add a setRef and rewritePackedRefsWhileLocked versions that supports non rw fs
| * Add norwfs version of rewritePackedRefsWhileLockedJavi Fontan2017-12-224-4/+50
| | | | | | | | Signed-off-by: Javi Fontan <jfontan@gmail.com>
| * Check reference also in norwfs SetRefJavi Fontan2017-12-221-2/+25
| | | | | | | | Signed-off-by: Javi Fontan <jfontan@gmail.com>
| * Add comment to the norwfs version of SetRefJavi Fontan2017-12-211-0/+7
| | | | | | | | Signed-off-by: Javi Fontan <jfontan@gmail.com>
| * Add a setRef version that supports non rw fsJavi Fontan2017-12-213-29/+62
| | | | | | | | | | | | | | | | | | There are some filesystems that do not support opening the files in read and write modes at the same time. The method SetRef is split in files with an extra version that only writes the reference. It can be activated with -tags norwfs on building. Signed-off-by: Javi Fontan <jfontan@gmail.com>
* | added DCOMáximo Cuadros2017-12-211-0/+36
| | | | | | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
* | remove old .travis folderMáximo Cuadros2017-12-212-9/+0
| | | | | | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
* | Merge pull request #698 from jfontan/improvement/use-decoder-cacheMáximo Cuadros2017-12-206-68/+113
|\ \ | | | | | | plumbing: cache, enforce the use of cache in packfile decoder
| * | Exercise NewObjectLRUDefault in testingJavi Fontan2017-12-201-41/+60
| | | | | | | | | | | | Signed-off-by: Javi Fontan <jfontan@gmail.com>
| * | Make DeltaBaseCache privateJavi Fontan2017-12-202-12/+19
| | | | | | | | | | | | Signed-off-by: Javi Fontan <jfontan@gmail.com>
| * | Fix typo and documentation of NewDecoderForTypeJavi Fontan2017-12-201-3/+3
| | | | | | | | | | | | Signed-off-by: Javi Fontan <jfontan@gmail.com>
| * | Enforce the use of cache in packfile decoderJavi Fontan2017-12-205-17/+36
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Decoder object can make use of an object cache to speed up processing. Previously the only way to specify it was changing manually the struct generated by NewDecodeForFile. This lead to some instances to be created without it and penalized performance. Now the cache should be explicitly passed to the constructor function. NewDecoder now creates objects with a cache using the default size. A new helper function was added to create cache objects with the default size as this becomes a common task now: cache.NewObjectLRUDefault() Signed-off-by: Javi Fontan <jfontan@gmail.com>
* | Merge pull request #697 from ajnavarro/performance/improve-delta-reusingMáximo Cuadros2017-12-205-29/+152
|\ \ | |/ |/| plumbing: packafile, improve delta reutilization
| * Improve delta reutilizationAntonio Jesus Navarro Perez2017-12-205-29/+152
| | | | | | | | | | | | | | | | | | | | | | - Remove wrong 'if' on delta selector that causes poor delta reutilizations - packfile.Encoder now can write deltas and objects in a non specific order - ObjectToPack now saves the Offset on the packfile to be able to obtain base offset in a recursive manner and write them before the delta itself - Added encoder test to check cyclic delta chains - Check the output packfile hash in all encoder tests Signed-off-by: Antonio Jesus Navarro Perez <antnavper@gmail.com>
* | Merge pull request #695 from darkowlzz/grep-multiple-patterns-pathspecMáximo Cuadros2017-12-203-35/+124
|\ \ | | | | | | git: Worktree.Grep() support multiple patterns and pathspecs
| * | git: Worktree.Grep() support multiple patterns and pathspecsSunny2017-12-203-35/+124
| | | | | | | | | | | | Signed-off-by: Sunny <me@darkowlzz.space>
* | | Merge pull request #690 from mcuadros/readmeMáximo Cuadros2017-12-191-18/+14
|\ \ \ | |_|/ |/| | README.md update
| * | README.md updateMáximo Cuadros2017-12-181-18/+14
| | | | | | | | | | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
* | | Merge pull request #696 from ferhatelmas/simplify-againOri Rawlings2017-12-173-11/+4
|\ \ \ | |_|/ |/| | *: simplication
| * | *: simplicationferhat elmas2017-12-183-11/+4
|/ / | | | | | | | | | | - no unnecessary err/bool check, uses them directly Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
* / git: worktree, add Grep() method for git grep (#686)Sunny2017-12-124-1/+324
|/ | | This change implemented grep on worktree with options to invert match and specify pathspec. Also, a commit hash or reference can be used to specify the worktree to search.
* Merge pull request #687 from smithrobs/sshconfigMáximo Cuadros2017-12-112-0/+110
|\ | | | | check .ssh/config for host and port overrides; fixes #629
| * plumbing: transport ssh, ssh_config implementationMáximo Cuadros2017-12-112-12/+107
| | | | | | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
| * check .ssh/config for host and port overrides; fixes #629Robert Smith2017-12-091-0/+15
| |
* | Merge pull request #680 from mcuadros/license-contributingMáximo Cuadros2017-12-114-19/+336
|\ \ | | | | | | License upgrade, plus code of conduct and contributing guidelines
| * | code of conduct from https://www.contributor-covenant.org/Máximo Cuadros2017-12-071-0/+74
| | | | | | | | | | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
| * | contributing guidelinesMáximo Cuadros2017-12-071-0/+58
| | | | | | | | | | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
| * | *: licence change to Apache 2.0Máximo Cuadros2017-12-071-19/+201
| | | | | | | | | | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
| * | MAINTAINERS: add @mcuadros, @strib and @orirawlingsMáximo Cuadros2017-12-071-0/+3
| | | | | | | | | | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
* | | Merge pull request #688 from darkowlzz/compat-cleanMáximo Cuadros2017-12-111-1/+1
|\ \ \ | |_|/ |/| | doc: update compatibility for clean
| * | doc: update compatibility for cleanSunny2017-12-101-1/+1
|/ / | | | | | | | | | | Fixed in #675 Signed-off-by: Sunny <me@darkowlzz.space>
* | Merge pull request #677 from krylovsk/bugffix/stats-on-empty-patchMáximo Cuadros2017-12-074-5/+51
|\ \ | | | | | | object: patch, fix stats for submodules (fixes #654)
| * | format: diff, remove error when two files are empty, submodules are simply ↵Máximo Cuadros2017-12-072-5/+2
| | | | | | | | | | | | | | | | | | ignored Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
| * | object: patch, test patch on submodulesMáximo Cuadros2017-12-071-0/+44
| | |
| * | Ignore empty patches when calculating stats (fixes #654)Alexandr Krylovskiy2017-12-041-0/+5
| | |
* | | storage: filesystem, add support for git alternates (#663)Sunny2017-12-064-1/+148
| |/ |/| | | | | This change adds a new method Alternates() in DotGit to check and query alternate source.
* | Merge pull request #675 from darkowlzz/git-cleanMáximo Cuadros2017-12-043-0/+67
|\ \ | |/ |/| git: worktree, add Clean() method for git clean
| * test: git, Worktree.Clean()Sunny2017-12-041-0/+35
| |
| * git: worktree, add Clean() method for git cleanSunny2017-12-042-0/+32
| | | | | | | | | | | | | | This change implement git clean with a `Dir` option. By default, clean removes only the untracked files in the working directory. If `Dir` option is set to true, untracked files under other directories are also cleaned.
* | Merge pull request #674 from ferhatelmas/time-equalMáximo Cuadros2017-12-041-1/+1
|\ \ | |/ |/| dotgit: use Equal method of time.Time for equality
| * dotgit: use Equal method of time.Time for equalityferhat elmas2017-12-041-1/+1
|/
* Fix revision solver for branch and tag (#660)Anthony HAMON2017-12-017-54/+82
| | | fix Repository.ResolveRevision for branch and tag
* Merge pull request #672 from ferhatelmas/gofmt-sMáximo Cuadros2017-12-0112-22/+22
|\ | | | | all: gofmt -s
| * all: gofmt -sferhat elmas2017-11-3012-22/+22
| |
* | Merge pull request #669 from keybase/strib/gh-gcMáximo Cuadros2017-12-0115-74/+928
|\ \ | |/ |/| storage/repository: add new functions for garbage collection
| * dotgit: rewrite packed-refs while holding lockJeremy Stribling2017-11-303-60/+103
| | | | | | | | | | | | Windows file system doesn't let us rename over a file while holding that file's lock, so use rewrite as a last resort. It could result in a partially-written file, if there's a failure at the wrong time.