summaryrefslogtreecommitdiff
path: root/remote.h
diff options
context:
space:
mode:
authorJay Soffian <jaysoffian@gmail.com>2009-11-10 05:03:31 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-11-10 09:01:22 (GMT)
commitf2ef6075c9d248523bf658d82065b46d892b5601 (patch)
tree7524f95071bc2ec11b2bc8a02e698714af17947e /remote.h
parente2d41c64bfbea592daeb3a065f1aa3900a03e07f (diff)
downloadgit-f2ef6075c9d248523bf658d82065b46d892b5601.zip
git-f2ef6075c9d248523bf658d82065b46d892b5601.tar.gz
git-f2ef6075c9d248523bf658d82065b46d892b5601.tar.bz2
remote: refactor some logic into get_stale_heads()
Move the logic in builtin-remote.c which determines which local heads are stale to remote.c so it can be used by other builtins. Signed-off-by: Jay Soffian <jaysoffian@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote.h')
-rw-r--r--remote.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/remote.h b/remote.h
index 5db8420..d0aba81 100644
--- a/remote.h
+++ b/remote.h
@@ -154,4 +154,7 @@ struct ref *guess_remote_head(const struct ref *head,
const struct ref *refs,
int all);
+/* Return refs which no longer exist on remote */
+struct ref *get_stale_heads(struct remote *remote, struct ref *fetch_map);
+
#endif