git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Pull without fetch
@ 2019-04-06 13:12 Damien Robert
  2019-04-08  1:34 ` Junio C Hamano
  0 siblings, 1 reply; 9+ messages in thread
From: Damien Robert @ 2019-04-06 13:12 UTC (permalink / raw)
  To: git

Dear git developpers,

is there a way to do a git pull without it running git fetch?
Looking at the source in builtin/pull.c does not seem to indicate so.

Here is my use case: I do a `git fetch --all` to look at the incoming
changes, and only afterwards I would like to do a `git pull --no-fetch`. I
could of course call `git merge`/`git rebase` directly, but the advantage
of `git pull` is that it parses the value of branch.<name>.rebase for me
(in `parse_config_rebase`). I could easily write a script for it, but this
would just duplicate this part of git-pull, so we might as well use git
pull directly. Moreover, `git-pull --rebase` used to have extra functionality
where it looked at the reflog to find the merge base. This is now
incorporated directly into git rebase, but this is one more reason I would
like to use git pull directly.

I am missing another way? Would a patch to provide this feature be accepted?

-- 
Damien Robert

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-04-11 11:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-06 13:12 Pull without fetch Damien Robert
2019-04-08  1:34 ` Junio C Hamano
2019-04-08  2:17   ` Duy Nguyen
2019-04-08 12:51     ` Ævar Arnfjörð Bjarmason
2019-04-08 13:18       ` Duy Nguyen
2019-04-08 14:53   ` Damien Robert
2019-04-08 16:11     ` Damien Robert
2019-04-09  8:03       ` Junio C Hamano
2019-04-11 11:07         ` Damien Robert

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).