2 # TopGit - A different patch queue manager
3 # (c) Petr Baudis <pasky@suse.cz> 2008
7 ## Set up all the tg machinery
19 # Don't do anything on non-topgit branch
20 if head_=$(git symbolic-ref -q HEAD); then
23 git rev-parse -q --verify "${head_#refs/heads/#refs/top-bases#}" >/dev/null || exit 0;;
32 # TODO: check the index, not the working copy
33 [ -s "$root_dir/.topdeps" ] ||
34 die ".topdeps is missing"
35 [ -s "$root_dir/.topmsg" ] ||
36 die ".topmsg is missing"
38 # TODO: Verify .topdeps for valid branch names and against cycles