2 # TopGit - A different patch queue manager
3 # (c) Petr Baudis <pasky@suse.cz> 2008
16 [ -z "$head_from" ] || die
"-i and -w are mutually exclusive"
19 echo "Usage: ${tgname:-tg} [...] files [-i | -w] [<name>]" >&2
22 [ -z "$name" ] || die
"name already specified ($name)"
28 head="$(git symbolic-ref -q HEAD)" ||
:
29 head="${head#refs/heads/}"
33 name
="$(verify_topgit_branch "$name")"
34 base_rev
="$(git rev-parse --short --verify "refs
/$topbases/$name" -- 2>/dev/null)" ||
35 die
"not a TopGit-controlled branch"
37 if [ -n "$head_from" ] && [ "$name" != "$head" ]; then
38 die
"$head_from makes only sense for the current branch"
41 b_tree
=$
(pretty_tree
"$name" -b)
42 t_tree
=$
(pretty_tree
"$name" $head_from)
44 git diff-tree
--name-only -r $b_tree $t_tree