diff options
author | Edward Thomson <ethomson@github.com> | 2016-04-26 11:39:53 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@github.com> | 2016-04-26 13:19:58 -0400 |
commit | d55923788c6b43351db2bc7555aef3bea391a1f4 (patch) | |
tree | 05e15007fa8284488c5f15aa12fd2730c364414f /src/reset.c | |
parent | b3ffd8f63840b2401fa2e636163512a8f0f17b47 (diff) | |
download | libgit2-ethomson/annotated_commit_refs.tar.gz |
annotated_commit: provide refs and descriptionethomson/annotated_commit_refs
Differentiate between the ref_name used to create an annotated_commit
(that can subsequently be used to look up the reference) and the
description that we resolved this with (which _cannot_ be looked up).
The description is used for things like reflogs (and may be a ref name,
and ID something that we revparsed to get here), while the ref name must
actually be a reference name, and is used for things like rebase to
return to the initial branch.
Diffstat (limited to 'src/reset.c')
-rw-r--r-- | src/reset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reset.c b/src/reset.c index f8a1a1dc8..db0bfb373 100644 --- a/src/reset.c +++ b/src/reset.c @@ -195,5 +195,5 @@ int git_reset_from_annotated( git_reset_t reset_type, const git_checkout_options *checkout_opts) { - return reset(repo, (git_object *) commit->commit, commit->ref_name, reset_type, checkout_opts); + return reset(repo, (git_object *) commit->commit, commit->description, reset_type, checkout_opts); } |