summaryrefslogtreecommitdiff
path: root/tag.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-08-05 07:47:56 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-08-05 07:47:56 (GMT)
commit37fde874c2448ae2cd98abe24df2bd2a50aa2cda (patch)
tree840ddec7144dd152792bd982d584db01472cadc6 /tag.h
parentb03e2d2091153d239063cfc086a840d74a9eadde (diff)
downloadgit-37fde874c2448ae2cd98abe24df2bd2a50aa2cda.zip
git-37fde874c2448ae2cd98abe24df2bd2a50aa2cda.tar.gz
git-37fde874c2448ae2cd98abe24df2bd2a50aa2cda.tar.bz2
Fix send-pack for non-commitish tags.
Again I left the v2.6.11-tree tag behind. My bad. This commit makes sure that we do not barf when pushing a ref that is a non-commitish tag. You can update a remote ref under the following conditions: * You can always use --force. * Creating a brand new ref is OK. * If the remote ref is exactly the same as what you are pushing, it is OK (nothing is pushed). * You can replace a commitish with another commitish which is a descendant of it, if you can verify the ancestry between them; this and the above means you have to have what you are replacing. * Otherwise you cannot update; you need to use --force. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'tag.h')
-rw-r--r--tag.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tag.h b/tag.h
index 3e8c32d..36e5324 100644
--- a/tag.h
+++ b/tag.h
@@ -15,5 +15,6 @@ struct tag {
extern struct tag *lookup_tag(const unsigned char *sha1);
extern int parse_tag_buffer(struct tag *item, void *data, unsigned long size);
extern int parse_tag(struct tag *item);
+extern struct object *deref_tag(struct object *);
#endif /* TAG_H */