7 LONG_USAGE
=" Read wip file and display topic branch/log waiting for merging
9 The WIP file is '.git/.wip'. There is three kinds of line:
11 <empty> : does nothing
12 --- <text> : display --- <text> as-is
13 branch [branch-point] : output commits done on branch since branch-point
14 Default value for branch-point is master.
17 exec_path
=$
(git
--exec-path)
18 .
$exec_path/git-sh-setup
28 n
=$
(git cherry
$from $branch |
wc -l)
30 printf " * $branch (`git log -1 --pretty="%ai
" $branch`)"
31 if [ "$n" = "" ]; then
33 elif [ "$n" = "1" ]; then
38 git log
--pretty=" %s" $branch ^
$from |
39 while read line
; do printf -- " - %s\n" "$line"; done
40 if [ "$STAT" = "1" ]; then
42 git
diff $branch~
$n..
$branch --stat |
sed 's,^, ,g'
52 "---") echo; echo "$line";
69 while read line
; do handle_line
"$line" $line; done < $FILE;
71 echo No WIP description
for this project.