git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RFC: Folder Git
@ 2011-04-25  8:32 Victor Engmark
  2011-04-25  8:52 ` Jon Seymour
  2011-04-25 10:39 ` Jakub Narebski
  0 siblings, 2 replies; 6+ messages in thread
From: Victor Engmark @ 2011-04-25  8:32 UTC (permalink / raw)
  To: git

Most days I work on more than one repository, and on more than one
machine. I've never needed the "--" argument separator so far. This
combination makes it useful to have a way to run Git commands on
several repositories at once. A one-time solution would of course be a
for-loop which checks for a .git directory before running the given
command, but this operation ended up being frequent enough that I
wrote a script for it: fgit
<https://github.com/l0b0/fgit/blob/master/fgit.sh>. Features include:
* Runs the Git command given in all specified directories which have a
.git subdirectory, and warns about any that lack this directory.
* Should work with any path, containing spaces, newlines or other
exotic characters.
* Should work with any Git command that doesn't require the "--"
separator between the options and arguments.
* Prints the Git command before running it, for logging and repetition.
* errexit and nounset are active for each line, with one exception:
errexit is disabled for the running of the command, to allow it to
continue to other repositories.

Issues:
* Don't know if anyone else has used it. Probably not, so there's
bound to be issues (especially since it's been changed quite a bit the
last couple days for this RFC).

Is there a place for such a tool in Git porcelain or elsewhere in the
Git project, or should it be kept completely separate?

-- 
Victor Engmark

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

end of thread, other threads:[~2011-04-26  7:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-25  8:32 RFC: Folder Git Victor Engmark
2011-04-25  8:52 ` Jon Seymour
2011-04-26  6:47   ` Victor Engmark
2011-04-26  7:03     ` Jon Seymour
2011-04-25 10:39 ` Jakub Narebski
2011-04-26  6:59   ` Victor Engmark

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 NNTP newsgroup(s).