aboutsummaryrefslogtreecommitdiffstats
path: root/config/config_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #418 from abhinav/unusedMáximo Cuadros2021-12-101-0/+1
|\ | | | | Remove unused vars/types/funcs/fields
| * Remove unused variables/types/functionsAbhinav Gupta2021-11-271-0/+1
| | | | | | | | | | | | | | | | [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.
* | config: add tests for branch desc marshaling and unmarshalingmerlin2021-11-081-3/+8
|/
* *: use go-billy instead of os callsMáximo Cuadros2021-05-021-13/+7
|
* config: support insteadOf for remotes' URLs (#79)Kostya Ostrovsky2020-12-011-1/+24
|
* add some testsThomas Lazar2020-10-091-0/+27
|
* Add init.defaultBranch to the configThomas Lazar2020-09-301-0/+6
|
* CreateTagOptions.Validate: load Tagger from configMáximo Cuadros2020-06-051-1/+36
|
* config: ReadConfig and LoadConfig from scopesMáximo Cuadros2020-05-241-0/+6
|
* config: Config.[User|Author|Commit] marshal/unmarshalMáximo Cuadros2020-05-241-8/+32
|
* Revert "Merge pull request #20 from quorumcontrol/feature/other-configs"Máximo Cuadros2020-05-241-160/+0
| | | | | This reverts commit 3127ad9a44a2ee935502816065dfe39f494f583d, reversing changes made to 73c52edaad2dae256be61bd1dbbab08e1092f58e.
* Add Merged configWes Morgan2020-04-061-0/+160
| | | | ...for reading and writing global (~/.git/config) and reading system (/etc/gitconfig) configs in addition to local repo config
* *: migration from gopkg to go modulesMáximo Cuadros2020-03-101-1/+1
|
* Fix typos in comments, variables and function namesOleksandr Redko2019-10-241-3/+3
| | | | Signed-off-by: Oleksandr Redko <oleksandr.red+github@gmail.com>
* Add test for Windows local paths.Filip Navara2018-10-051-1/+14
| | | | Signed-off-by: Filip Navara <navara@emclient.com>
* config: add commentChar to core config structZaq? Wiedmann2018-08-291-0/+2
| | | | Signed-off-by: Zaq? Wiedmann <zaquestion@gmail.com>
* config: adds branches to config for tracking branches against remotes, ↵Jeremy Chambers2018-04-101-3/+73
| | | | | | updates clone to track when cloning a branch. Fixes #313 Signed-off-by: Jeremy Chambers <jeremy@thehipbot.com>
* Make DefaultPackWindow const public and document itJavi Fontan2018-01-101-1/+1
| | | | Signed-off-by: Javi Fontan <jfontan@gmail.com>
* Add tests for default config valuesJavi Fontan2018-01-101-0/+9
| | | | Signed-off-by: Javi Fontan <jfontan@gmail.com>
* config: support a configurable, and turn-off-able, pack.windowJeremy Stribling2017-09-111-0/+8
| | | | | | | | | | | | | | | | | | | | One use of go-git is to transfer git data from a non-standard git repo (not stored in a file system, for example) to a "remote" backed by a standard, local .git repo. In this scenario, delta compression is not needed to reduce transfer time over the "network", because there is no network. The underlying storage layer has already taken care of the data tranfer, and sending the objects to local .git storage doesn't require compression. So this PR gives the user the option to turn off compression when it isn't needed. Of course, this results in a larger, uncompressed local .git repo, but the user can then run git gc or git repack on that repo if they care about the storage costs. Turning the pack window to 0 on reduces total push time of a 36K repo by 50 seconds (out of a pre-PR total of 3m26s).
* serialized remotes in alphabetical orderManuel Carmona2017-08-101-2/+2
|
* config: preserve option order on config marshallingSantiago M. Mola2017-08-011-1/+1
| | | | | Do not change order of options (e.g. in RemoteConfig) when serializing for any option whose value has not changed.
* config: multiple values in RemoteConfig (URLs and Fetch)Santiago M. Mola2017-08-011-4/+23
| | | | | | | | * Change `URL string` to `URL []string` in `RemoteConfig`, since git allows multiple URLs per remote. See: http://marc.info/?l=git&m=116231242118202&w=2 * Fix marshalling of multiple fetch refspecs.
* config: added Config.SubmodulesMáximo Cuadros2017-02-141-0/+16
|
* config: adding Config.Core.WorktreeMáximo Cuadros2017-02-131-0/+25
|
* config: marshal and unmarshal implementationMáximo Cuadros2017-01-261-2/+46
|
* global storage interface refactor (#112)Máximo Cuadros2016-11-071-0/+20
| | | | | | | | | | | * core: ObjectStorage, ReferenceStorage renamed to ObjectStorer and ReferenceStorer * rebase * general, changes request by @alcortes * general, changes request by @alcortes
* clients/ssh: test fixMáximo Cuadros2016-08-241-5/+0
|
* ForEach review and Commit.Tree err returnMáximo Cuadros2016-08-221-0/+31