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

Re: git-cvsimport bug with dates

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 16, 2007, 06:06 UTC
Message-ID
<7vr6iq207f.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<51419b2c0711152059q55ced86gd224310c8c4a1851@mail.gmail.com>
"Elijah Newren" <newren@gmail.com> writes:
Show 8 quoted lines
> $ git diff @{2007-10-01}
> warning: Log for '' only goes back to Wed, 24 Oct 2007 19:31:38 +0000.
> fatal: bad object @{2007-10-01}
>
>
> It appears that passing a date to git diff on any repository imported
> by git-cvsimport will show this error, as long as the date is prior to
> when the repository was imported.
That is not a cvsimport specific issue.

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.

	$ git log --since=3.days.ago master

asks "go back from the master tip and show commits until you hit the commit made earlier than that date and stop traversing".

On the other hand,
	$ git show master@{3.days.ago}

asks "show the commit that was the tip of 'master' branch in my repository three days ago." Maybe you pulled from your upstream 5 minutes ago, and the last time before that, you pulled three weeks ago and did not do any development on the branch. In such a case, the latter question will give you the tip of your 'master' as of three weeks ago which is the same as of three days ago.

Previous: Elijah NewrenNext: Elijah Newren
Message 2 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.