core: Add "refspec" which is remote:refname

This allows an unambiguous reference; otherwise, it was too easy to
have confusion between local heads and remotes.
This commit is contained in:
Colin Walters committed 2013-06-29 12:51:29 -04:00
1 parent e3dc0c91df
commit 1ba852ebaa
4 files changed
+245 -76

No files matched your search

+6 -1
View File
@@ -153,7 +153,7 @@ gboolean ostree_repo_stage_content_finish (OstreeRepo *self,
GError **error);
gboolean ostree_repo_resolve_rev (OstreeRepo *self,
const char *rev,
const char *refspec,
gboolean allow_noent,
char **out_resolved,
GError **error);
@@ -164,6 +164,11 @@ gboolean ostree_repo_write_ref (OstreeRepo *self,
const char *rev,
GError **error);
gboolean ostree_repo_write_refspec (OstreeRepo *self,
const char *refspec,
const char *rev,
GError **error);
gboolean ostree_repo_list_all_refs (OstreeRepo *repo,
GHashTable **out_all_refs,
GCancellable *cancellable,