bin/git-bre

changeset 347
a2510f8c18cb
parent 346
88a2e08ce673
child 348
d72bc8c8d6f0
equal deleted inserted replaced
346:88a2e08ce673 347:a2510f8c18cb
1 #!/bin/sh
2 set -eu
3
4 # git-bre: "branch edit", run $EDITOR with a list of all files touched in this
5 # branch compared to upstream. Any args are passed to the editor, before the
6 # file list.
7
8 CHANGED=$(
9 git diff --name-only @{u}.. | while read file
10 do
11 printf "\'$file\' "
12 done
13 )
14
15 eval "exec $EDITOR $@ ${CHANGED:?[No files to edit]}"

mercurial