Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove unused variables/types/functions | Abhinav Gupta | 2021-11-27 | 3 | -33/+0 |
| | | | | | | | | [staticcheck](https://staticcheck.io/) reported a number of unused fields, functions, types, and variables across the code. Where possible, use them (assert unchecked errors in tests, for example) and otherwise remove them. | ||||
* | Support v3 index | John Cai | 2021-11-05 | 2 | -14/+46 |
| | | | | | | Currently the index encoder does not support the v3 index format. This change adds support to the encoder. This helps to unlock sparse checkout. | ||||
* | better tests | enisdenjo | 2021-10-27 | 1 | -39/+9 |
| | |||||
* | plumbing: gitignore, Read .git/info/exclude file too. | enisdenjo | 2021-10-27 | 2 | -10/+58 |
| | |||||
* | plumbing: format/packfile, prevent large objects from being read into memory ↵ | zeripath | 2021-06-30 | 8 | -33/+405 |
| | | | | | | | | | | | | | | | completely (#330) This PR adds code to prevent large objects from being read into memory from packfiles or the filesystem. Objects greater than 1Mb are now no longer directly stored in the cache or read completely into memory. This PR differs and improves the previous broken #323 by fixing several bugs in the reader and transparently wrapping ReaderAt as a Reader. Signed-off-by: Andrew Thornton <art27@cantab.net> | ||||
* | Revert "plumbing: format/packfile, prevent large objects from being read ↵v5.4.2 | zeripath | 2021-06-02 | 4 | -313/+0 |
| | | | | | into memory completely (#303)" (#329) This reverts commit 720c192831a890d0a36b4c6720b60411fa4a0159. | ||||
* | plumbing: format/packfile, prevent large objects from being read into memory ↵v5.4.0 | zeripath | 2021-05-12 | 4 | -0/+313 |
| | | | | | | | | | | | completely (#303) This PR adds code to prevent large objects from being read into memory from packfiles or the filesystem. Objects greater than 1Mb are now no longer directly stored in the cache or read completely into memory. Signed-off-by: Andrew Thornton <art27@cantab.net> | ||||
* | plumbing: format, use os.UserHomeDir() | Máximo Cuadros | 2021-05-02 | 9 | -155/+72 |
| | |||||
* | diff: Allow srcPrefix and dstPrefix to be configured (#265) | Andrew Nelson | 2021-03-11 | 2 | -6/+53 |
| | | | | | | | | | * diff: Allow srcPrefix and dstPrefix to be configured The default behavior here remains the same, but this change does allow consumers of the UnifiedEncoder to set their own path prefixes which will override the defaults of a/ and b/. * Add unit test for src/dstPrefix in encoder | ||||
* | plumbing: gitignore, Fix gitconfig path in LoadSystemPatterns doc (#256) | Andrew Archibald | 2021-03-10 | 1 | -1/+1 |
| | |||||
* | Merge pull request #112 from MichaelMure/complete-config | Máximo Cuadros | 2020-10-09 | 6 | -56/+369 |
|\ | | | | | config: add missing functions for completeness | ||||
| * | Add tests | vince | 2020-08-27 | 3 | -9/+267 |
| | | |||||
| * | config: add missing functions for completeness | Michael Muré | 2020-06-24 | 3 | -47/+102 |
| | | |||||
* | | Merge pull request #125 from cristaloleg/minor-linter-fixes | Máximo Cuadros | 2020-07-16 | 1 | -1/+1 |
|\ \ | | | | | | | *: minor linter fixes | ||||
| * | | Minor linter fixes | Oleg Kovalov | 2020-07-06 | 1 | -1/+1 |
| | | | |||||
* | | | Merge pull request #115 from blaueled/fix/gitignore-crlf | Máximo Cuadros | 2020-07-14 | 2 | -11/+19 |
|\ \ \ | | | | | | | | | .gitignore crlf fix | ||||
| * | | | fix typo | Arne Westphal | 2020-06-29 | 1 | -1/+1 |
| | | | | |||||
| * | | | test CRLF in GFS case | Arne Westphal | 2020-06-29 | 1 | -4/+12 |
| | | | | |||||
| * | | | replace ReadAll by bufio.scanner | Arne Westphal | 2020-06-29 | 1 | -6/+6 |
| | |/ | |/| | |||||
* | | | Use EqualFold for comparison | Oleg Kovalov | 2020-07-06 | 2 | -2/+2 |
| |/ |/| | |||||
* | | fix nil | Oleg Kovalov | 2020-07-01 | 2 | -2/+3 |
| | | |||||
* | | fix goreportcard warnings | Oleg Kovalov | 2020-07-01 | 11 | -15/+20 |
|/ | |||||
* | Merge pull request #73 from WKBae/close_objectv5.1.0 | Máximo Cuadros | 2020-05-24 | 6 | -12/+41 |
|\ | | | | | Close Reader & Writer of EncodedObject after use | ||||
| * | Close Reader & Writer of EncodedObject after use | Kyungmin Bae | 2020-05-24 | 6 | -12/+41 |
| | | |||||
* | | Merge branch 'master' of github.com:go-git/go-git into scope-config | Máximo Cuadros | 2020-05-24 | 2 | -37/+64 |
|\| | |||||
| * | plumbing: diff, reset color at end of line rather than at beginning of next | Tom Payne | 2020-05-17 | 2 | -37/+64 |
| | | |||||
* | | Revert "Merge pull request #20 from quorumcontrol/feature/other-configs" | Máximo Cuadros | 2020-05-24 | 1 | -261/+0 |
|/ | | | | | This reverts commit 3127ad9a44a2ee935502816065dfe39f494f583d, reversing changes made to 73c52edaad2dae256be61bd1dbbab08e1092f58e. | ||||
* | plumbing: diff, refresh internals | Tom Payne | 2020-05-01 | 1 | -216/+166 |
| | |||||
* | plumbing: diff, don't emit unnecessary resets | Tom Payne | 2020-04-30 | 3 | -22/+24 |
| | |||||
* | plumbing: color, make package external | Tom Payne | 2020-04-29 | 2 | -2/+2 |
| | |||||
* | plumbing: diff, fix coloring of hunk context | Tom Payne | 2020-04-29 | 2 | -15/+51 |
| | |||||
* | plumbing: diff, Add initial colored output support. Fixes #33. | Tom Payne | 2020-04-26 | 3 | -10/+206 |
| | |||||
* | Document some things in format/config/merged.go | Wes Morgan | 2020-04-07 | 1 | -1/+39 |
| | |||||
* | Add funcs to set global & local config in Merged | Wes Morgan | 2020-04-06 | 1 | -0/+8 |
| | |||||
* | Add Merged config | Wes Morgan | 2020-04-06 | 1 | -0/+215 |
| | | | | ...for reading and writing global (~/.git/config) and reading system (/etc/gitconfig) configs in addition to local repo config | ||||
* | ci: based on github actionsv5.0.0 | Máximo Cuadros | 2020-03-15 | 2 | -15/+3 |
| | |||||
* | *: migration from go-git-fixtures/v4 and go-git/gcfg | Máximo Cuadros | 2020-03-10 | 12 | -32/+20 |
| | |||||
* | *: migration from gopkg to go modules | Máximo Cuadros | 2020-03-10 | 50 | -104/+104 |
| | |||||
* | Fix typos in comments, variables and function names | Oleksandr Redko | 2019-10-24 | 3 | -5/+5 |
| | | | | Signed-off-by: Oleksandr Redko <oleksandr.red+github@gmail.com> | ||||
* | format: diff, Handle no newline at end of file. Fixes #936 | Stuart Jansen | 2019-10-13 | 2 | -30/+83 |
| | | | | Signed-off-by: Stuart Jansen <sjansen@buscaluz.org> | ||||
* | feat: avoid memory allocation on ApplyDelta, PatchDelta | Nao YONASHIRO | 2019-07-31 | 1 | -15/+30 |
| | | | | Signed-off-by: Nao YONASHIRO <owan.orisano@gmail.com> | ||||
* | refactor: use bufPool | Nao YONASHIRO | 2019-07-31 | 1 | -12/+3 |
| | | | | Signed-off-by: Nao YONASHIRO <owan.orisano@gmail.com> | ||||
* | feat: avoid memory allocation on resolveDeltas | Nao YONASHIRO | 2019-07-31 | 1 | -46/+53 |
| | | | | Signed-off-by: Nao YONASHIRO <owan.orisano@gmail.com> | ||||
* | feat: avoid ioutil.ReadAll on ApplyDelta | Nao YONASHIRO | 2019-07-31 | 1 | -2/+15 |
| | | | | Signed-off-by: Nao YONASHIRO <owan.orisano@gmail.com> | ||||
* | *: avoid unnecessary conversions | Christian Muehlhaeuser | 2019-07-29 | 3 | -3/+3 |
| | | | | | | | No need to convert these values, they're already of the right type. Signed-off-by: Christian Muehlhaeuser <muesli@gmail.com> (cherry picked from commit a1d8a7ac8bd0e4aff0f27dbb8bb37b8bd13a1346) | ||||
* | plumbing/format: simplify code | Christian Muehlhaeuser | 2019-07-29 | 2 | -2/+2 |
| | | | | | | | Just a bit easier to read, in my opinion. Signed-off-by: Christian Muehlhaeuser <muesli@gmail.com> (cherry picked from commit 91d314ce8f13eff06fd4af8b869cee5a3e2ab014) | ||||
* | plumbing/format: idxfile, unsigned values are never < 0 | Christian Muehlhaeuser | 2019-07-29 | 1 | -4/+0 |
| | | | | | Signed-off-by: Christian Muehlhaeuser <muesli@gmail.com> (cherry picked from commit 047bb4f6d0657389ddd4ca3230ff3bee08d66a6b) | ||||
* | *: added missing error checks in tests | Christian Muehlhaeuser | 2019-07-29 | 1 | -0/+1 |
| | | | | | | | | | | When we assign a value to err, make sure to also check for it being nil afterwards. If those were intentionally unchecked, we should remove the assignment in the first place. Those checks certainly never harm, but please review thoroughly and let me know. Signed-off-by: Christian Muehlhaeuser <muesli@gmail.com> (cherry picked from commit 19d6f42a4d814a50bd262fbb69a9b670db9756a2) | ||||
* | *: fixed tautological error conditionsautological error conditions | Christian Muehlhaeuser | 2019-07-29 | 1 | -8/+6 |
| | | | | | | | | | | - Added missing error handling around encodeCommitData and prevented shadowing err. - Removed tautological error checks. Signed-off-by: Christian Muehlhaeuser <muesli@gmail.com> (cherry picked from commit 7d76176416551fc21d98bc17768d158a82281406) | ||||
* | Fix typos in comments | Christian Muehlhaeuser | 2019-07-21 | 2 | -3/+3 |
| | | | | | | Just a few simple, nit-picky typo fixes. Signed-off-by: Christian Muehlhaeuser <muesli@gmail.com> |