Page 1 of 1

which_branch

Posted: 10 May 2014, 22:09
by Scooby
wrote a script that investigates from which branch a file or dir comes from

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