summaryrefslogtreecommitdiff
path: root/src/remote.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-07-04 09:03:33 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2014-09-30 15:43:24 +0200
commitc5837cad85c2730d30cd3c8b1018bd392ca8115a (patch)
tree52c0d3d9d80e213556020313a6409bffc6ede7a4 /src/remote.h
parent2cdd5c5752f1dea43cd31be9b75be7f7f5e4eab1 (diff)
downloadlibgit2-c5837cad85c2730d30cd3c8b1018bd392ca8115a.tar.gz
remote: implement opportunistic remote-tracking branch updatescmn/remote-fetch-refs
When a list of refspecs is passed to fetch (what git would consider refspec passed on the command-line), we not only need to perform the updates described in that refspec, but also update the remote-tracking branch of the fetched remote heads according to the remote's configured refspecs. These "fetches" are not however to be written to FETCH_HEAD as they would be duplicate data, and it's not what the user asked for.
Diffstat (limited to 'src/remote.h')
-rw-r--r--src/remote.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/remote.h b/src/remote.h
index 73c1614f6..b79ace438 100644
--- a/src/remote.h
+++ b/src/remote.h
@@ -33,6 +33,7 @@ struct git_remote {
unsigned int need_pack;
git_remote_autotag_option_t download_tags;
int update_fetchhead;
+ int passed_refspecs;
};
const char* git_remote__urlfordirection(struct git_remote *remote, int direction);