mgit - multi-dir git wrapper
Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README
mgit

README

--                                                                {{{1

File        : README
Maintainer  : Felix C. Stegerman <flx@obfusk.net>
Date        : 2012-07-30

Copyright   : Copyright (C) 2012  Felix C. Stegerman
Version     : v0.1.1

--                                                                }}}1

=== Description ===                                               {{{1

  mgit - multi-dir git wrapper

  mgit runs a git command in multiple repositories.  For example, to
  run >> git status << in all git repositories in ~/dev:

  $ mgit F ~/dev status | less
                                                                  }}}1

=== Usage ===                                                     {{{1

  mgit <target(s)> <git-cmd> [ <arg(s)> ]


  === Targets ===

    DIR   <dir>                     # git in <dir>
    FIND  <dir>                     # git in <dir>/**
    SUB   <dir>                     # git in <dir>/*

    DIRS  <dir1> [... <dirN>] END   # git in <dir1>   , ...
    FINDS <dir1> [... <dirN>] END   # git in <dir1>/**, ...
    SUBS  <dir1> [... <dirN>] END   # git in <dir1>/* , ...

    ENV                             # git in $MGIT_DIRS
    IN                              # git in <lines on STDIN>


  Abbreviations: D[IR][S], F[IND][S], S[UB][S], E[NV], I[N].

  FIND[S]/SUB[S] only visit dirs w/ .git subdir.
  FIND[S] sorts the dirs.
                                                                  }}}1

=== Installing ===                                                {{{1

  Get it at https://github.com/obfusk/mgit.

  === Homebrew ===

    $ brew tap obfusk/tap
    $ brew install mgit
                                                                  }}}1

=== License ===                                                   {{{1

  GPLv2 [1].
                                                                  }}}1

=== References ===                                                {{{1

  [1] GNU General Public License, version 2
      http://www.opensource.org/licenses/GPL-2.0
                                                                  }}}1

--

vim: set tw=70 sw=2 sts=2 et fdm=marker :