summaryrefslogtreecommitdiff
path: root/include/git2/revwalk.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-02-01 15:19:13 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2014-02-05 12:16:44 +0100
commitd465e4e980333b3e7437801fc375b595fb3adf1f (patch)
tree2303ab03d8c8162a2305b337786d24fea73a2e12 /include/git2/revwalk.h
parentb4ef67d5ebc55943073d7baacd91f46c20d9ccf4 (diff)
downloadlibgit2-d465e4e980333b3e7437801fc375b595fb3adf1f.tar.gz
revwalk: ignore wrong object type in glob pushes
Pushing a whole namespace can cause us to attempt to push non-committish objects. Catch this situation and special-case it for ignoring this.
Diffstat (limited to 'include/git2/revwalk.h')
-rw-r--r--include/git2/revwalk.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/git2/revwalk.h b/include/git2/revwalk.h
index 4eac8d43c..12829b14c 100644
--- a/include/git2/revwalk.h
+++ b/include/git2/revwalk.h
@@ -110,6 +110,9 @@ GIT_EXTERN(int) git_revwalk_push(git_revwalk *walk, const git_oid *id);
* A leading 'refs/' is implied if not present as well as a trailing
* '/ *' if the glob lacks '?', '*' or '['.
*
+ * Any references matching this glob which do not point to a
+ * committish will be ignored.
+ *
* @param walk the walker being used for the traversal
* @param glob the glob pattern references should match
* @return 0 or an error code
@@ -149,6 +152,9 @@ GIT_EXTERN(int) git_revwalk_hide(git_revwalk *walk, const git_oid *commit_id);
* A leading 'refs/' is implied if not present as well as a trailing
* '/ *' if the glob lacks '?', '*' or '['.
*
+ * Any references matching this glob which do not point to a
+ * committish will be ignored.
+ *
* @param walk the walker being used for the traversal
* @param glob the glob pattern references should match
* @return 0 or an error code