From: Jeff King <peff@peff.net>
To: "Lin, Nathan (GSE)" <jih-tsen.nat.lin@hpe.com>
Cc: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: General questions - git archive a .j2 file with keyword expansion in the header section
Date: Thu, 19 Aug 2021 18:28:02 -0400 [thread overview]
Message-ID: <YR7a8vKrYgFJof0D@coredump.intra.peff.net> (raw)
In-Reply-To: <DF4PR8401MB0795EE7D2828A45289295D3892C09@DF4PR8401MB0795.NAMPRD84.PROD.OUTLOOK.COM>
On Thu, Aug 19, 2021 at 09:28:11PM +0000, Lin, Nathan (GSE) wrote:
> Got a question on using git keyword expansion on a .j2 template file.
> Keyword expansion does not seem to work with .j2 file. Please see
> below a snippet of my attempt to archive test.cfg.j2 containing git
> keyword expansions in the header. It works if I changes the .j2 file
> extension to something else, say .yaml. I have not been able to find
> any information about issue. Can you please review and advise? Thank
> you.
Do you have .gitattributes entries that tell Git it should apply the
"export-subst" attribute to any files? If so, does it cover .yaml files,
but not .j2?
-Peff
prev parent reply other threads:[~2021-08-19 22:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-19 21:28 General questions - git archive a .j2 file with keyword expansion in the header section Lin, Nathan (GSE)
2021-08-19 22:28 ` Jeff King [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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YR7a8vKrYgFJof0D@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=jih-tsen.nat.lin@hpe.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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).