diff options
author | Vicent Martà <vicent@github.com> | 2013-04-29 13:30:31 -0700 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2013-04-29 13:30:31 -0700 |
commit | 4157851076d476b3b7f9a8bb9b85497517b14cdf (patch) | |
tree | aeebf52e7141625bfbc9f91847f5d22cc32dc9bd /include/git2 | |
parent | bb503dbd0326abd6fe714b99cd7e64c482130867 (diff) | |
parent | d84884571d04d609ed5f3508aecd9e24b84f47c7 (diff) | |
download | libgit2-4157851076d476b3b7f9a8bb9b85497517b14cdf.tar.gz |
Merge pull request #1511 from carlosmn/refspec-shorthand
dwim shorthand refspecs for fetch
Diffstat (limited to 'include/git2')
-rw-r--r-- | include/git2/refs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/git2/refs.h b/include/git2/refs.h index 1ff0d4544..e1d425352 100644 --- a/include/git2/refs.h +++ b/include/git2/refs.h @@ -422,6 +422,13 @@ typedef enum { * (e.g., foo/<star>/bar but not foo/bar<star>). */ GIT_REF_FORMAT_REFSPEC_PATTERN = (1 << 1), + + /** + * Interpret the name as part of a refspec in shorthand form + * so the `ONELEVEL` naming rules aren't enforced and 'master' + * becomes a valid name. + */ + GIT_REF_FORMAT_REFSPEC_SHORTHAND = (1 << 2), } git_reference_normalize_t; /** |