git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Shawn Pearce <spearce@spearce.org>
To: git@vger.kernel.org
Subject: Re: Tracking branch history
Date: Mon, 15 May 2006 01:58:30 -0400	[thread overview]
Message-ID: <20060515055830.GC28068@spearce.org> (raw)
In-Reply-To: <20060515031511.GA27505@spearce.org>

Shawn Pearce <spearce@spearce.org> wrote:
> Log ref updates to logs/refs/<ref>
> 
> If config parameter core.logAllRefUpdates is true or the log
> file already exists then append a line to ".git/logs/refs/<ref>"
> whenever git-update-ref <ref> is executed.  Each log line contains
> the following information:
> 
>   oldsha1 <SP> newsha1 <SP> committer <LF>
> 
> where committer is the current user, date, time and timezone in
> the standard GIT ident format.  If the caller is unable to append
> to the log file then git-update-ref will fail without updating <ref>.
> 
> An optional message may be included in the log line with the -m flag.

This is all well and good but its sort of useless without the diffcore
being able to lookup what SHA1 was valid on a given branch at a given
point in time.  :-)

I'm thinking about extending the 'extended SHA1' syntax to accept
a date (or date expression) as a suffix:

	HEAD@'2 hours ago'
	HEAD@'2006-04-20'
	HEAD@'2006-04-20 14:12'

etc... This would be merged into get_sha1 (sha1_name.c) so its
usable pretty much anywhere.  Does this seem reasonable?  If so
I'll work up a patch for it.

-- 
Shawn.

  reply	other threads:[~2006-05-15  5:59 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-12 23:18 Tracking branch history Daniel Barkalow
2006-05-12 23:45 ` Linus Torvalds
2006-05-13  0:03   ` Linus Torvalds
2006-05-13  4:27     ` Daniel Barkalow
2006-05-13  3:40   ` Shawn Pearce
2006-05-13  4:38     ` Linus Torvalds
2006-05-13  4:56     ` Junio C Hamano
2006-05-13  7:17       ` Shawn Pearce
2006-05-13  7:43         ` Shawn Pearce
2006-05-13 15:20           ` Linus Torvalds
2006-05-13 16:43             ` Junio C Hamano
2006-05-13 18:18               ` Shawn Pearce
2006-05-14 23:14                 ` Junio C Hamano
2006-05-15  3:15                   ` Shawn Pearce
2006-05-15  5:58                     ` Shawn Pearce [this message]
2006-05-15  6:27                       ` Junio C Hamano
2006-05-15  6:38                         ` Shawn Pearce
2006-05-15  9:53                           ` Shawn Pearce
2006-05-13 15:11         ` Linus Torvalds
2006-05-13 12:53 ` Elrond
2006-05-14 23:16   ` 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=20060515055830.GC28068@spearce.org \
    --to=spearce@spearce.org \
    --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;
as well as URLs for NNTP newsgroup(s).