This project is mirrored from https://github.com/git/git. Updated .
  1. 17 Jun, 2013 1 commit
    • John Keeping's avatar
      rev-parse: add --prefix option · 12b9d327
      John Keeping authored
      This makes 'git rev-parse' behave as if it were invoked from the
      specified subdirectory of a repository, with the difference that any
      file paths which it prints are prefixed with the full path from the top
      of the working tree.
      
      This is useful for shell scripts where we may want to cd to the top of
      the working tree but need to handle relative paths given by the user on
      the command line.
      Signed-off-by: John Keeping's avatarJohn Keeping <[email protected]>
      Signed-off-by: default avatarJunio C Hamano <[email protected]>
      12b9d327