diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-07-21 12:32:02 +0200 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-07-25 07:53:31 +0200 |
commit | ae8331784eb968169e03099a5803a236a6a5aed4 (patch) | |
tree | 57dcf4b96429d973934543bc29b9eb568ec9572e /include/git2/reflog.h | |
parent | bd72425d16fce9771af7727029f7d8ea8c2e98d2 (diff) | |
download | libgit2-ae8331784eb968169e03099a5803a236a6a5aed4.tar.gz |
reflog: prevent git_reflog_read() from chocking when no log exists yet
Diffstat (limited to 'include/git2/reflog.h')
-rw-r--r-- | include/git2/reflog.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/git2/reflog.h b/include/git2/reflog.h index 9d04688e..ae8bb865 100644 --- a/include/git2/reflog.h +++ b/include/git2/reflog.h @@ -23,6 +23,10 @@ GIT_BEGIN_DECL /** * Read the reflog for the given reference * + * If there is no reflog file for the given + * reference yet, an empty reflog object will + * be returned. + * * The reflog must be freed manually by using * git_reflog_free(). * |