summaryrefslogblamecommitdiffstats
path: root/README.org
blob: 54d6c0216a6342bc5489f47c2e4f5dd6be1a760c (plain) (tree)
1
2
3
4
5
6
7
8






                                                                     
                                                         


           

                       
                        


                                                            


                                                                      



                                                        

                                                             

                  















                                                                      

         


                                               
* git difme

stages files and makes commits on a list of git repositories based on
some rules.

** rules

the rules specify what type of files to stage and commit.

file types:

   - modified file (M).
   - deleted file (D).
   - untracked file (?).

the rules are defined per git repository in the config file.

if git-difme finds finds already staged files, it'll commit them first
before doing anything.

** config

the config file must be at =~/.config/git-difme/config=.

the config is simply a scheme file that defines =difme-repos=
function:

#+BEGIN_SRC scheme
(define (difme-repos)
  (list '("/path/to/git/repo/foo" "M" "D" "?")
        '("/path/to/git/repo/bar" "M")
        '("/path/to/git/repo/baz" "M" "?")
        '("/path/to/git/repo/frb")))
#+END_SRC

- for repo ~foo~, git difm will only stage and commit modified (M),
  deleted (D) and untracked (?) files.
- for repo ~bar~, git difm will only stage and commit modified (M)
  files.
- for repo ~baz~, git difm will only stage and commit modified (M) and
  untracked (?) files.
- for repo ~frb~, git difm will only stage and commit all types of
  files.

#+END_SRC

** license

gnu general public license version 3 or higher.