summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-05-16 11:11:56 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2021-05-16 11:11:56 +0100
commit589443883bfb450fb2d04f50df8854d18bf9d176 (patch)
treefcd8d5479bb233296133e598b77fc15e5295a67b /include
parentbe95f684da5d05e59919448c1061febbd4ff6eb8 (diff)
parentcf323cb9d94022e0301b5bb3bebdf2f6a5b4e338 (diff)
downloadlibgit2-589443883bfb450fb2d04f50df8854d18bf9d176.tar.gz
Merge branch 'zero_oid_in_old'
Manually merging #5842
Diffstat (limited to 'include')
-rw-r--r--include/git2/refs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/git2/refs.h b/include/git2/refs.h
index 8bc99e15e..7ebb209b2 100644
--- a/include/git2/refs.h
+++ b/include/git2/refs.h
@@ -97,6 +97,9 @@ GIT_EXTERN(int) git_reference_dwim(git_reference **out, git_repository *repo, co
* of updating does not match the one passed through `current_value`
* (i.e. if the ref has changed since the user read it).
*
+ * If `current_value` is all zeros, this function will return GIT_EMODIFIED
+ * if the ref already exists.
+ *
* @param out Pointer to the newly created reference
* @param repo Repository where that reference will live
* @param name The name of the reference