diff options
author | Jay Soffian <jaysoffian@gmail.com> | 2009-11-10 00:03:31 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-11-10 01:01:22 -0800 |
commit | f2ef6075c9d248523bf658d82065b46d892b5601 (patch) | |
tree | 7524f95071bc2ec11b2bc8a02e698714af17947e /remote.h | |
parent | e2d41c64bfbea592daeb3a065f1aa3900a03e07f (diff) | |
download | git-f2ef6075c9d248523bf658d82065b46d892b5601.tar.gz |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |