Tom Willemse
6c05056f84
Setting a list as a value for `global-config' will instruct gitto to place that setting in the config more than once. For example: ,---- | (set! global-config | '(("remote \"origin\"" | ("url" . "git@somehost.com:~a.git") | ("pushurl" "git@somehost.com:~a.git" | "git@someotherhost.com:user/~a.git")))) `---- Will produce output similar to: ,---- | [remote "origin"] | url = git@somehost.com:repo-name.git | pushurl = git@somehost.com:repo-name.git | pushurl = git@someotherhost.com:user/repo-name.git `---- The ordering may vary depending on what was already found in the `origin' remote's settings. gitto doesn't know or care which settings can and cannot appear more than once in a configuration, it is up to the user to provide valid values. |
||
---|---|---|
emacs | ||
gitto | ||
src | ||
COPYING | ||
env | ||
Makefile | ||
README.org | ||
run-gitto |
Gitto
For lack of a better title.
My simple utility to keep track of all the git repositories I have on my computer(s). Also an experiment in writing scheme.
Written for GNU Guile 2.0.x
Installation
Installing gitto
is not really necessary, but it is more
convenient. In order to install it just run:
make install
This will install gitto
to /usr/local/
, if you would like it
somewhere else you could use the DESTDIR
variable:
make install DESTDIR=/some/other/place
This will install gitto
to /some/other/place/
.
Removal
If you're fed up with gitto
and want it gone, and I do mean now,
you can run:
make uninstall
This will remove any gitto
installed files from /usr/local/
, if you
used the DESTDIR
variable during installation, you should give it
the same value here, like:
make uninstall DESTDIR=/some/other/place
This will remove any gitto
installed files from /some/other/place/
.
Usage
Usage is, hopefully, simple, first you have to register some repos:
$ gitto -r ~/projects/project1 $ gitto -r ~/projects/project2 $ gitto -r ~/projects/project3
Then you can call gitto
without any argument to see a list of your
repos and their statuses:
$ gitto project1: 0 to push, 0 to pull and is dirty project2: 5 to push, 2 to pull and is not dirty project3: 0 to push, 1 to pull and is not dirty
If you're done with one of your projects and no longer wish to track their status you can unregister them:
$ gitto -R ~/projects/project1
If you require further assistance:
$ gitto -h
run-gitto
As I mentioned, it is not completely necessary to install gitto, I have added a utility to run it straight from je project directory, although mostly for testing purposes.
Using run-gitto
works exactly the same as using gitto
when it is
installed.