aboutsummaryrefslogtreecommitdiffstats
path: root/config/refspec.go
Commit message (Collapse)AuthorAgeFilesLines
* minor grammatical fixesJon Eskin2022-09-221-1/+1
|
* config: RefSpec.IsExactSHA1, validates if the refspec describes an exact ↵Máximo Cuadros2020-05-101-2/+7
| | | | SHA1 ref
* *: migration from gopkg to go modulesMáximo Cuadros2020-03-101-1/+1
|
* Merge pull request #1165 from seletskiy/push-pruneMáximo Cuadros2019-07-261-0/+7
|\ | | | | Remote: add Prune option to PushOptions
| * add Prune option to PushOptionsStanislav Seletskiy2019-07-251-0/+7
| | | | | | | | Signed-off-by: Stanislav Seletskiy <s.seletskiy@gmail.com>
* | config: added missing dot.Vladimir Masarik2019-07-041-1/+1
| | | | | | | | Signed-off-by: Vladimir Masarik <masarik.vladimir7@gmail.com>
* | fix wildcard handling in RefSpec matchingMike Lundy2019-06-041-3/+3
|/ | | | | | | | | | | 1) The guard logic here was inverted, resulting in an always-false branch, which meant that the suffix after the wildcard was incorrectly ignored. 2) Wildcards were treated as 1-or-more matches, but git treats them as 0-or-more. This change aligns go-git with git, but represents a bit of a breaking change for go-git. Signed-off-by: Mike Lundy <mike@fluffypenguin.org>
* all: remove extra 's' in "mismatch"Jongmin Kim2018-09-261-1/+1
| | | | Signed-off-by: Jongmin Kim <jmkim@pukyong.ac.kr>
* Fix RefSpec.Src()Alan Cabrera2018-03-141-1/+7
| | | | | | | | | Previously, the Src() function was assuming there are no “+” characters in the refspec src and erroneously used the strings.Index() function to compute the start index of src in the refspec. This change now uses the IsForceUpdate() method to decide how to elide the force update token. Signed-off-by: Alan Cabrera <adc@toolazydogs.com>
* all: simplificationferhat elmas2017-11-291-11/+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`
* 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-6/+6
|
* config: RefSpec.Validate returning errors and doc (Fixes #232)Máximo Cuadros2017-01-311-6/+16
|
* new srcd.works/go-git.v4 pathMáximo Cuadros2017-01-301-1/+1
|
* config: support delete refspecs (IsDelete). (#166)Santiago M. Mola2016-12-081-0/+9
|
* new plumbing package (#118)Máximo Cuadros2016-11-081-9/+9
| | | * plumbing: now core was renamed to core, and formats and clients moved inside
* gofmt simplify (#111)ferhat elmas2016-11-071-3/+3
|
* remote, fix fetch tagsMáximo Cuadros2016-10-271-3/+4
|
* Remote.Fetch multiple RefSpec supportMáximo Cuadros2016-08-221-0/+11
|
* remote and repository base on ConfigStoreMáximo Cuadros2016-08-211-0/+4
|
* Remote.Fetch base on RefSpec, improvement of the responsabilities separationMáximo Cuadros2016-08-191-0/+110