aboutsummaryrefslogtreecommitdiffstats
path: root/config/config.go
Commit message (Collapse)AuthorAgeFilesLines
* config: add a way to see if a "remote" URL is local or notJeremy Stribling2019-02-111-0/+5
| | | | | | | | This factors out some URL-parsing code from the transport layer so it can be used by config as well. Issue: #909 Signed-off-by: Jeremy Stribling <strib@alum.mit.edu>
* config: add commentChar to core config structZaq? Wiedmann2018-08-291-0/+5
| | | | Signed-off-by: Zaq? Wiedmann <zaquestion@gmail.com>
* config: modules, Ignore submodules with dotdot '..' path components. Fixes ↵Joseph Vusich2018-05-301-4/+8
| | | | | | | | | | | CVE-2018-11235 References: * https://blogs.msdn.microsoft.com/devops/2018/05/29/announcing-the-may-2018-git-security-vulnerability/ * https://security-tracker.debian.org/tracker/CVE-2018-11235 * https://github.com/git/git/commit/0383bbb9015898cbc79abd7b64316484d7713b44 Signed-off-by: Joseph Vusich <jvusich@amazon.com>
* config: adds branches to config for tracking branches against remotes, ↵Jeremy Chambers2018-04-101-2/+64
| | | | | | 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-4/+6
| | | | 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>
* all: simplificationferhat elmas2017-11-291-8/+3
| | | | | | | | | | - no length for map initialization - don't check for boolean/error return - don't format string - use string method of bytes buffer instead of converting bytes to string - use `strings.Contains` instead of `strings.Index` - use `bytes.Equal` instead of `bytes.Compare`
* config: support a configurable, and turn-off-able, pack.windowJeremy Stribling2017-09-111-0/+39
| | | | | | | | | | | | | | | | | | | | 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/+10
|
* config: preserve option order on config marshallingSantiago M. Mola2017-08-011-11/+27
| | | | | 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-6/+17
| | | | | | | | * 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.
* Export raw config.JP Sugarbroad2017-04-061-14/+14
|
* project: move imports from srcd.works to gopkg.inAntonio Jesus Navarro Perez2017-03-071-1/+1
| | | | To be able to fix #261 we will move again to gopkg.in before v4 stable release.
* documentation and API improvementsMáximo Cuadros2017-02-211-11/+12
|
* config: added Config.SubmodulesMáximo Cuadros2017-02-141-9/+40
|
* config: adding Config.Core.WorktreeMáximo Cuadros2017-02-131-0/+9
|
* config: RefSpec.Validate returning errors and doc (Fixes #232)Máximo Cuadros2017-01-311-8/+21
|
* new srcd.works/go-git.v4 pathMáximo Cuadros2017-01-301-1/+1
|
* rename billy importsMáximo Cuadros2017-01-301-1/+1
|
* Fix typos in config pkg (#233)Sergio Arbeo2017-01-301-2/+2
|
* config: documentation improvementsMáximo Cuadros2017-01-301-17/+26
|
* config: marshal and unmarshal implementationMáximo Cuadros2017-01-261-0/+111
|
* remote: add Push (#178)Santiago M. Mola2016-12-191-3/+5
| | | | | | | | | | | | * remote: add Push. * add Push method to Remote. * add method Push to Repository. * examples: add push example. * requested changes * add tests, fixes
* config: Config, bare flag (#177)Máximo Cuadros2016-12-121-0/+3
| | | | | | | | * config.Config: bare flag * changes * changes
* config: storer commentMáximo Cuadros2016-11-071-1/+1
|
* global storage interface refactor (#112)Máximo Cuadros2016-11-071-5/+34
| | | | | | | | | | | * core: ObjectStorage, ReferenceStorage renamed to ObjectStorer and ReferenceStorer * rebase * general, changes request by @alcortes * general, changes request by @alcortes
* doc packagesMáximo Cuadros2016-09-011-0/+1
|
* clients/ssh: test fixMáximo Cuadros2016-08-241-6/+0
|
* Remote.Fetch multiple RefSpec supportMáximo Cuadros2016-08-221-3/+35
|
* remote and repository base on ConfigStoreMáximo Cuadros2016-08-211-0/+1
|
* remote and repository base on ConfigStoreMáximo Cuadros2016-08-201-4/+10
|
* Remote.Fetch base on RefSpec, improvement of the responsabilities separationMáximo Cuadros2016-08-191-0/+13