"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: Unable to add new patch, "file has unexpected status"
To:
Timo Myyrä <timo.myyra@bittivirhe.fi>
Cc:
"Herbert J. Skuhra" <herbert@gojira.at>, gameoftrees@openbsd.org
Date:
Mon, 31 Jan 2022 17:09:30 +0100

Download raw body.

Thread
On Mon, Jan 31, 2022 at 05:48:23PM +0200, Timo Myyrä wrote:
> I'm in favor of more accurate error message. I recall this isn't the
> first time I've tripped in got giving the full path and not relative
> path from current directory.

Indeed, the error was misleading. Thank you for reporting this!
I will commit the fix.

> Why "got st ." does not show relative path names from current directory?

All path are displayed relative to the work tree root. This is simply
a design decision and it is done consistently across all commands.
For example, got diff . also shows paths relative to the work tree root.
In my opinion, showing full paths provides important information, especially
in patch files.