https://www.dropbox.com/s/xye531c06av4upz/which_branch
Code: Select all
Usage:
which_branch [OPTION]... [FILES]...
-v,--verbose Use for verbose output. Twice for even more.
-h,--help Display usage message.
-a,--all Display all ocurrances instead of only the
one visible in union.
Takes a file or a dir as input and investigates from what branch
in aufs the file comes from.
Examples:
which_branch /root/.bashrc
which_branch -a /root/.bashrc
which_branch -v /root/.bashrc
which_branch /root/.bashrc -v -v