summaryrefslogtreecommitdiffstats
path: root/site/projects/gitto.org
blob: 05f909ca5ab3a6dbc49ac70cd4ec8a345abd4b2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#+TITLE: gitto
#+LINK_UP: ../index.html
#+LINK_HOME: http://ryuslash.org
#+LINK: src    https://github.com/ryuslash/gitto
#+LINK: tar_gz https://github.com/ryuslash/gitto/tarball/master
#+LINK: zip    https://github.com/ryuslash/gitto/zipball/master
#+STARTUP: show all

#+begin_html
  <script src="/keyjs.KS" type="text/javascript"></script>
  <script type="text/javascript">
    keyjs_initialize({ "u": [ "keyjs_goto", "../index.html" ],
                       "h": [ "keyjs_goto", "http://ryuslash.org" ] });
  </script>
#+end_html

#+INCLUDE: "dlmenu.inc"

* About

  ~gitto~ is a utility written in [[http://www.gnu.org/software/guile/][Guile scheme]] to help me keep track of
  the status of my git repositories.

** Features

   - Show a list of how many commits to pull or push and whether or
     not the working directory of that repository is dirty.

** Requirements

   - [[http://www.gnu.org/software/guile/][Guile]] v2.0.x
   - [[http://git-scm.com][git]]

* Usage

** Register repositories

   First you'll have to register some repositories:

   #+begin_example
     $ gitto -r ~/projects/project1
     $ gitto -r ~/projects/project2
     $ gitto -r ~/projects/project3
   #+end_example

** List status

   Once you have registered some repositories you can list them by
   calling ~gitto~ without any arguments:

   #+begin_example
     $ 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
   #+end_example

** Remove repositories

   When you're fed up with a repository and no longer care about its
   status, you can remove it with the =-R= switch:

   #+begin_src shell-script
     $ gitto -R ~/projects/project1
   #+end_src