threads / discuss / 7098

Dry run flag for git-pull or git-fetch?

Subject: Dry run flag for git-pull or git-fetch?

## tl;dr

One message between Mar 5, 2007 and Mar 5, 2007.

replies: 0people: 1as markdown or json

Jon Loeliger· Mar 5, 2007, 20:41 UTC · lore
Folks,

Is there a "dry-run" flag for git-pull and git-fetch that I missed somewhere?

Specifically, I'm looking for a "git pull -n foo" command that would tell me, as output, the gross-level effect without actually doing the steps. That is, I'd expect something like:

    Fetching from remote "foo"
        URL: git://example.com/pub/foostuff.git
        Remote branch: foo/main into remote/foo/main
        Remote branch: foo/testing into remote/foo/testing
    Merging:
        Remote foo/main into local heads/master

Or something down that line. Basically parrot the config file plus command line effect back at the user as a sanity check first.

Thanks, jdl

← back to recent threads