git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-cvsimport bug with dates

From
Robin Rosenberg <robin.rosenberg.lists@dewire.com>
Date
Nov 17, 2007, 10:12 UTC
Message-ID
<200711171112.23150.robin.rosenberg.lists@dewire.com>
In-Reply-To
<51419b2c0711160612r1a80bd5o686040f945e8d9c3@mail.gmail.com>
fredag 16 november 2007 skrev Elijah Newren:
Show 9 quoted lines
> On Nov 15, 2007 11:06 PM, Junio C Hamano <gitster@pobox.com> wrote:
> > When you use "branch@{date}" notation, you are not asking a
> > question on the project history, but a question on the local
> > view from _your_ repository on that project.
> 
> Interesting; that makes sense from a merge or pull viewpoint, but
> wouldn't it make more sense to have cvsimport ensure the commits are
> treated as though they actually existed in master as of the date
> specified in CVS?

Reflog do not work that way. They don't say when a commit entered a repo, only when a ref changed. For a CVS import things could work as you suggest but I think the confusion among newcomers would be massive if people start using reflogs 'as if' it said anyting about when a commit entered. It can be used as a hint.

Reflogs get pruned by git-gc and are not cloned (cannot be since they store local-only information.

Use the --since and --until switches instead.
-- robin
Previous: Elijah NewrenNext: Elijah Newren
Message 4 of 6 in “git-cvsimport bug with dates”
  1. Elijah NewrenNov 16, 2007
  2. Junio C HamanoNov 16, 2007
  3. Elijah NewrenNov 16, 2007
  4. Robin RosenbergNov 17, 2007
  5. Elijah NewrenNov 17, 2007
  6. Jan HudecNov 17, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.