blob: 9afb7d44821562c27fd86aa5fc51f1c569888c45 (
plain) (
blame)
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
|
* 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
|