Thread (5 messages) flat view 5 messages, 3 authors, 2016-06-15

Re: [PATCH] quote_path: convert empty path to "./"

From: Jeff King <hidden>
Date: 2016-06-15 22:43:57

On Fri, Dec 07, 2007 at 02:05:15PM -0500, Thomas Harning wrote:
I concur.  There is one case that this seems to dodge.  What about the case 
where you are in:

/test/test_2  where /test  is not tracked...

This should probably show "./../"   not just "./"   , right?
It already says "../", which is correct:

  $ git init
  $ mkdir test && cd test
  $ touch file
  $ mkdir test2 && cd test2
  $ git status
  ...
  # Untracked files:
  #   (use "git add <file>..." to include in what will be committed)
  #
  #       ../

There's no point in ever saying "./" _except_ in the case where the
output would be totally blank, since there is no way to tell that it is
an output line.

Personally, I don't like either the "../" or the "./", but I actually
think the relative paths are less readable than the full paths in
general.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help