From: Junio C Hamano <gitster@pobox.com>
To: Denton Liu <liu.denton@gmail.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: [PATCH] format-patch: make format.outputDirectory relative to worktree
Date: Tue, 24 Dec 2019 18:26:19 -0800 [thread overview]
Message-ID: <xmqqtv5p3zuc.fsf@gitster-ct.c.googlers.com> (raw)
In-Reply-To: <20191224220544.GA1917@generichostname> (Denton Liu's message of "Tue, 24 Dec 2019 17:05:44 -0500")
Denton Liu <liu.denton@gmail.com> writes:
> ... Maybe `worktree:path/from/top` or
> `^path/from/top` or something like this?
I recall seeing a similar idea with a bit better syntax discussed
when we talked about path-type values in the configuration system,
where we use "~WORD~/" prefix to expand to Git specific special
places in the filesystem, just like "~USER/" prefix expands to the
home directory of the user. E.g. "~gitdir~/config" may expand to
point at the per-repository configuration file in the current
repository, and "~worktree~/Makefile" may be the top-level Makefile
checked out in the current worktree. This depends on the fact that
nobody sane has username ending with tilde (and if there is such a
user, tough luck for that user). I'm tempted to credit Dscho for
the idea but it could have been by J6t.
Does anybody have a pointer to the discussion thread?
prev parent reply other threads:[~2019-12-25 2:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-24 12:37 [PATCH] format-patch: make format.outputDirectory relative to worktree Denton Liu
2019-12-24 19:25 ` Junio C Hamano
2019-12-24 22:05 ` Denton Liu
2019-12-25 2:26 ` Junio C Hamano [this message]
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=xmqqtv5p3zuc.fsf@gitster-ct.c.googlers.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=liu.denton@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.