Re: exporting the last N days of a repository

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Mon, 3 Nov 2008, Geoff Russell wrote:

> On Thu, Oct 30, 2008 at 1:40 AM, Johannes Schindelin
> <Johannes.Schindelin@xxxxxx> wrote:
> >
> > On Wed, 29 Oct 2008, Geoff Russell wrote:
> >
> >> I want to export "the last N days" of a repository to create a copy 
> >> which has an origin which is the state of the repository N days ago 
> >> and has all the history between then and now.
> >>
> >> Can fast-export do this?
> >
> > Yes.  See the --since=... option.
> 
> Sorry, I didn't explain what I want very well.  N days ago I had a 
> working directory in a state S with files F1,F2,F3,...  I want to dump 
> all the history before then so that this is my new starting point, so I 
> want to keep all changes since then.

Well, if you are interested in the history of your _local_ ref, then you 
should use reflogs:

	$ git log --since=HEAD@{10.days.ago}

Hth,
Dscho

P.S.: man git-reflog

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux