21 Commits

Author SHA1 Message Date
Jon Eskin
af1efaa7df minor grammatical fixes 2022-09-22 10:08:02 +02:00
Máximo Cuadros
21f106e664 config: RefSpec.IsExactSHA1, validates if the refspec describes an exact SHA1 ref 2020-05-10 11:02:21 +02:00
Máximo Cuadros
2bdfd91f04 *: migration from gopkg to go modules 2020-03-10 00:40:56 +01:00
Máximo Cuadros
1edb992dbc Merge pull request #1165 from seletskiy/push-prune
Remote: add Prune option to PushOptions
2019-07-26 18:59:37 +02:00
Stanislav Seletskiy
5d9007f27b add Prune option to PushOptions
Signed-off-by: Stanislav Seletskiy <s.seletskiy@gmail.com>
2019-07-25 16:38:47 +03:00
Vladimir Masarik
08dd45acfc config: added missing dot.
Signed-off-by: Vladimir Masarik <masarik.vladimir7@gmail.com>
2019-07-04 14:01:31 +02:00
Mike Lundy
af3226f652 fix wildcard handling in RefSpec matching
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>
2019-06-04 09:25:06 -07:00
Jongmin Kim
156d632a53 all: remove extra 's' in "mismatch"
Signed-off-by: Jongmin Kim <jmkim@pukyong.ac.kr>
2018-09-26 23:59:23 +09:00
Alan Cabrera
d873056e03 Fix RefSpec.Src()
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>
2018-03-14 08:06:44 -07:00
ferhat elmas
18e6f9daa3 all: simplification
- 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`
2017-11-29 13:01:32 +01:00
Antonio Jesus Navarro Perez
33e7c165c9 project: move imports from srcd.works to gopkg.in
To be able to fix #261 we will move again to gopkg.in before v4 stable release.
2017-03-07 12:58:18 +01:00
Máximo Cuadros
ed288b30de documentation and API improvements 2017-02-21 16:03:39 +01:00
Máximo Cuadros
387683bbcf config: RefSpec.Validate returning errors and doc (Fixes #232) 2017-01-31 12:00:40 +01:00
Máximo Cuadros
85a4efcc45 new srcd.works/go-git.v4 path 2017-01-30 23:52:39 +01:00
Santiago M. Mola
3962b8d4db config: support delete refspecs (IsDelete). (#166) 2016-12-08 14:24:12 +01:00
Máximo Cuadros
ac095bb12c new plumbing package (#118)
* plumbing: now core was renamed to core, and formats and clients moved inside
2016-11-08 23:46:38 +01:00
ferhat elmas
7b0f65f5f5 gofmt simplify (#111) 2016-11-07 20:32:00 +01:00
Máximo Cuadros
0c6c404715 remote, fix fetch tags 2016-10-27 02:42:36 +02:00
Máximo Cuadros
f42d82364c Remote.Fetch multiple RefSpec support 2016-08-22 00:18:02 +02:00
Máximo Cuadros
b32e92d013 remote and repository base on ConfigStore 2016-08-21 01:07:15 +02:00
Máximo Cuadros
1d56b98d9b Remote.Fetch base on RefSpec, improvement of the responsabilities separation 2016-08-19 17:42:13 +02:00