bin/git-bre

changeset 338
296f4b036ae3
child 342
41f152d6ab1b
equal deleted inserted replaced
337:1aed142faa16 338:296f4b036ae3
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 echo \'$file\'
12 done
13 )
14
15 eval "exec $EDITOR $@ ${CHANGED:?[No files to edit]}"

mercurial