git-extras icon indicating copy to clipboard operation
git-extras copied to clipboard

[WIP] Add git-pull-all command

Open nicolaiskogheim opened this issue 8 years ago • 3 comments

Track working directories once, and then use git pull-all to pull each repository in one go later.

This is just #77 rebased onto master. The only edits I did was remove trailing whitespace.

I don't think I would use this command, but a couple of guys showed interest in the comments. If anyone has thoughts on whether git pull-all should be included or not, please share.

I haven't reviewed or tested the code, hence the WIP label, but I will after we've decided to take it in. If we do, that is.

nicolaiskogheim avatar Jul 27 '16 22:07 nicolaiskogheim

Just to clarify, does this pull all branches from remote?

@hughsk

qw3rtman avatar Jul 28 '16 02:07 qw3rtman

does this pull all branches from remote?

No.

There are two cases:

  1. if $# -eq 0 then git pull in each repository
  2. else git pull "$@", which means you can give arguments, but passing in branch names wouldn't make sense, except when you want to only pull the master branch in every repo.

nicolaiskogheim avatar Jul 28 '16 11:07 nicolaiskogheim

My bad, I should have looked at the man page in this PR.

This looks like a useful feature to me (especially for those who keep all their repositories in a central directory).

qw3rtman avatar Jul 28 '16 17:07 qw3rtman