From: Felipe Contreras <felipe.contreras@gmail.com>
To: Junio C Hamano <gitster@pobox.com>, Jeff King <peff@peff.net>
Cc: Felipe Contreras <felipe.contreras@gmail.com>, git@vger.kernel.org
Subject: Re: [PATCH] doc: set actual revdate for manpages
Date: Fri, 14 Apr 2023 10:20:13 -0600 [thread overview]
Message-ID: <64397d3d67d21_5e3ce294a6@chronos.notmuch> (raw)
In-Reply-To: <xmqq5y9yv601.fsf@gitster.g>
Junio C Hamano wrote:
> Jeff King <peff@peff.net> writes:
> > diff --git a/Documentation/Makefile b/Documentation/Makefile
> > index 2ccc3a9bc9..307634a94f 100644
> > --- a/Documentation/Makefile
> > +++ b/Documentation/Makefile
> > @@ -144,8 +144,6 @@ man5dir = $(mandir)/man5
> > man7dir = $(mandir)/man7
> > # DESTDIR =
> >
> > -GIT_DATE := $(shell git show --quiet --pretty='%as')
> > -
> > ASCIIDOC = asciidoc
> > ASCIIDOC_EXTRA =
> > ASCIIDOC_HTML = xhtml11
> > diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN
> > index 9a1111af9b..14903bd261 100755
> > --- a/GIT-VERSION-GEN
> > +++ b/GIT-VERSION-GEN
> > @@ -10,7 +10,8 @@ LF='
> > # then try git-describe, then default.
> > if test -f version
> > then
> > - VN=$(cat version) || VN="$DEF_VER"
> > + VN=$(cut -d" " -f1 version) || VN="$DEF_VER"
> > + DN=$(cut -d" " -f2 version) || DN=""
>
> Are we sure historical GIT_VERSION strings never had a SP in it?
> I would be very surprised if we did, but the correctness of the
> approach depends on that assumption.
Why would that matter?
Supposing a hypothetical tarball with a version '0.99 foo', it would have a
corresponding GIT-VERSION-GEN (which didn't check for such file until 1.1.1),
and it would know how to parse it.
In other words: all three are tied together: the 'version' file, the
GIT-VERSION-GEN script, and the tarball that has them both.
--
Felipe Contreras
next prev parent reply other threads:[~2023-04-14 16:20 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-13 7:47 [PATCH] doc: set actual revdate for manpages Felipe Contreras
2023-04-14 7:04 ` Jeff King
2023-04-14 12:40 ` Felipe Contreras
2023-04-14 16:46 ` Junio C Hamano
2023-04-14 17:14 ` Junio C Hamano
2023-04-14 18:40 ` Felipe Contreras
2023-04-14 18:26 ` Felipe Contreras
2023-04-14 21:45 ` Jeff King
2023-04-14 22:06 ` Junio C Hamano
2023-04-14 21:35 ` Jeff King
2023-04-14 15:27 ` Junio C Hamano
2023-04-14 16:20 ` Felipe Contreras [this message]
2023-04-14 17:36 ` Junio C Hamano
2023-04-14 18:59 ` Felipe Contreras
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=64397d3d67d21_5e3ce294a6@chronos.notmuch \
--to=felipe.contreras@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=peff@peff.net \
/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.