Hello to all git developers and users,
we are dropping use of other SCMs for most of our projects
during time and switch to GIT. The actual one is uLan protocol
related stuff
http://sourceforge.net/projects/ulan/develop git://ulan.git.sourceforge.net/gitroot/ulan/ulan
This project provided more libraries and targets support used
in other university and company projects. CVS allows to checkout
some subset/directory for use in such case. The GIT does not
support work with subtrees so we have split project into
multiple submodules, but actual GIT submodules support
makes committing and maintenance over whole tree a little painfull.
So there are hackish helper scripts which made us work simpler
and can be found usable by others as well
git-sm-pull - runs git pull (by default) or other option or shell specified
command
for all subprojects. It is not necessary to stay in the project top directory,
when invoked. If it can be instructed to work with top lever repository even
if current working directory is inside subproject directory if option -w
is specified.
http://ulan.git.sourceforge.net/git/gitweb.cgi?p=ulan/ulan-top;a=blob;f=scripts/git-sm-pull;hb=HEADUsage: git-sm-pull [options] [shell command]
-w --whole find top repository for whole project
-h --help help
-p --pull pull in all submodules
-P --push push in all submodules
-s --status status in all submodules
git-sm-pull - runs git gui (by default) or other option or shell specified
command
for all subproject where status reports that repository is not clean.
http://ulan.git.sourceforge.net/git/gitweb.cgi?p=ulan/ulan-top;a=blob;f=scripts/git-sm-commit;hb=HEADUsage: git-sm-commit [options] [shell command]
-h --help help
-w --whole find top repository for whole project
-m --message specify commit message on command line
-a --all commit all changes in tracked files
-s --status show status
The second stript can be used without parameters or with -w to do
select and commit changes interactively or if option -m and/or -a
are used int runs git commit. You can find quite strange trickeries
there to propagate correctly multiple word arguments through shell/bash
there so it works as expected.
git-sm-commit -> invokes GUI for modified submodules
and for top finally
git-sm-commit -a -m "my change" -> commits changes in all tracked files
in all submodules with provided message
and then does toplevel commit which
should ensure submodules versions tying
git-sm-commit qgit -> runs know fancy viewer for each modified
submodule and for top finally
The other git commands can be specified as well, so git-sm-commit
can be little misleading after script evolution from original single
purpose version, but commit preparation is it main use still.
Thanks for git and may it be that these scripts can be usable
for some other users,
Pavel Pisa
e-mail:
[hidden email]
www:
http://cmp.felk.cvut.cz/~pisa university:
http://dce.felk.cvut.cz/ company:
http://www.pikron.com/--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to
[hidden email]
More majordomo info at
http://vger.kernel.org/majordomo-info.html