login
Header Space

 
 

Re: RCS keyword expansion

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Johannes Schindelin <Johannes.Schindelin@...>
Cc: <git@...>, Peter Karlsson <peter@...>
Date: Friday, October 12, 2007 - 7:52 pm

On 13/10/2007, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:

Exactly. When switching branches, or merging or fast-forwarding several commits,
the last commit may not be correct. The last commit is only correct
for the files
being updated by the fast-forward to exactly one commit.
Which seem to be pretty natural for the use case of checkout-only
web-published workspace.


Your comment prompted me to think about a narrower case of
fast-forwaring to one revision.
In that case, 'smudge' script can have commit identifier in
FETCH_HEAD, so the example
script from previous message with a little modification:

    $rev = `git-rev-parse FETCH_HEAD`

gives *exact* solution to the originally stated problem, though for
the specific case
when the web server directory is a checkout-only working directory,
which pulls changes
automatically from master server (as opposed to, e.g., pushing changes
to web server).
Even if the server pulls several revisions at once, it is likely that
they are done in a close succession (otherwise automated update would
have picked them separately), and
important part in web page timestamp is usually date.

Too bad I do not really have a web server and do not need to maintain
timestamps in web pages ... :) git scriptability always amazed me.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
RCS keyword expansion, Peter Karlsson, (Thu Oct 11, 10:47 am)
Re: RCS keyword expansion, Lars Hjemli, (Thu Oct 11, 3:16 pm)
Re: RCS keyword expansion, Randal L. Schwartz, (Thu Oct 11, 11:09 am)
Re: RCS keyword expansion, Peter Karlsson, (Thu Oct 11, 1:55 pm)
Re: RCS keyword expansion, Sam Vilain, (Thu Oct 11, 5:20 pm)
Re: RCS keyword expansion, Alex Riesen, (Thu Oct 11, 3:21 pm)
Re: RCS keyword expansion, Peter Karlsson, (Fri Oct 12, 1:27 am)
Re: RCS keyword expansion, Oliver Kullmann, (Thu Oct 11, 11:59 am)
Re: RCS keyword expansion, Johannes Schindelin, (Thu Oct 11, 4:47 pm)
Re: RCS keyword expansion, Peter Karlsson, (Fri Oct 12, 1:26 am)
Re: RCS keyword expansion, Salikh Zakirov, (Fri Oct 12, 3:08 pm)
Re: RCS keyword expansion, Johannes Schindelin, (Fri Oct 12, 6:42 pm)
Re: RCS keyword expansion, Zakirov Salikh, (Fri Oct 12, 7:52 pm)
Re: RCS keyword expansion, Johannes Schindelin, (Fri Oct 12, 6:02 am)
Re: RCS keyword expansion, Peter Karlsson, (Fri Oct 12, 6:50 am)
Re: RCS keyword expansion, Jan Hudec, (Fri Oct 12, 8:57 am)
Re: RCS keyword expansion, Johannes Schindelin, (Fri Oct 12, 7:34 am)
Re: RCS keyword expansion, Peter Karlsson, (Mon Oct 15, 10:03 am)
Re: RCS keyword expansion, Johannes Schindelin, (Mon Oct 15, 10:28 am)
Re: RCS keyword expansion, Lars Hjemli, (Fri Oct 12, 7:21 am)
Re: RCS keyword expansion, Johannes Sixt, (Fri Oct 12, 7:05 am)
Re: RCS keyword expansion, Sam Vilain, (Thu Oct 11, 5:35 pm)
Re: RCS keyword expansion, Alex Riesen, (Thu Oct 11, 2:09 pm)
Re: RCS keyword expansion, Johannes Sixt, (Thu Oct 11, 11:02 am)
speck-geostationary