From: Mirko Faina <mroik@delayed.space>
To: Aron Sigfridsson <aron.sigfridsson@gmail.com>
Cc: git@vger.kernel.org, Mirko Faina <mroik@delayed.space>
Subject: Re: Git reference git stash
Date: Fri, 6 Mar 2026 03:31:33 +0100 [thread overview]
Message-ID: <aao7uLxQ0ir0m6s2@exploit> (raw)
In-Reply-To: <aao1hFwJYpJymY3o@exploit>
On Fri, Mar 06, 2026 at 03:09:15AM +0100, Mirko Faina wrote:
> It doesn't seem to be specified at all, but from a quick test you can
> see for yourself that "git stash push <pathspec>" uses relative paths
> from the current directory and not the toplevel one.
>
> To be sure on what's the relative path to use you can check the output
> from "git status".
>
> Maybe it should be added to the documentation for "git stash".
Looking at the docs for other commands that use pathspec, it doesn't
look like any of them explicitly say if it's toplevel or relative
neither. I suppose the author thought it was obvious which one it was,
besides, it can be easily checked just by trying out the command.
next prev parent reply other threads:[~2026-03-06 2:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-05 20:07 Git reference git stash Aron Sigfridsson
2026-03-06 2:09 ` Mirko Faina
2026-03-06 2:31 ` Mirko Faina [this message]
2026-03-06 12:29 ` erik88
2026-03-06 21:50 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aao7uLxQ0ir0m6s2@exploit \
--to=mroik@delayed.space \
--cc=aron.sigfridsson@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox