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

Re: Joining cg-*-id

From
Matthias Urlichs <smurf@smurf.noris.de>
Date
Sep 20, 2005, 15:13 UTC
Message-ID
<pan.2005.09.20.15.13.21.656923@smurf.noris.de>
In-Reply-To
<Pine.LNX.4.58.0509200734440.2553@g5.osdl.org>
Hi, Linus Torvalds wrote:
Show 7 quoted lines
> And if you select one of them at random (or by deciding which parent is
> the "primary" one), then
> 
> 	git diff yesterday..
> 
> will show not the changes since yesterday, but _all_ the changes that came
> in through the merge.

IMHO the way out is to realize that you did the same thing yesterday, so presumably, if we teach git to remember what yesterday's head was, there's no problem.

So let's do a "git diff-since yesterday" which simply forks a "git diff since/yesterday..HEAD", and then copies .git/HEAD to .git/refs/since/yesterday.

Just don't call it "yesterday" in the documentation ;-) and print a nice error message instead of an ugly one if the user hasn't run the program before. (But still do the copy.)

-- 
Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |  smurf@smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
 - -
What if everything is an illusion and nothing exists?  In that case, I
definitely overpaid for my carpet.
		-- Woody Allen, "Without Feathers"
Previous: Petr BaudisNext: Junio C Hamano
Message 15 of 22 in “Joining cg-*-id”
  1. Pavel RoskinSep 19, 2005
  2. Petr BaudisSep 19, 2005
  3. Linus TorvaldsSep 19, 2005
  4. Petr BaudisSep 19, 2005
  5. Linus TorvaldsSep 20, 2005
  6. Petr BaudisSep 20, 2005
  7. Linus TorvaldsSep 20, 2005
  8. Petr BaudisSep 20, 2005
  9. Linus TorvaldsSep 20, 2005
  10. Linus TorvaldsSep 20, 2005
  11. Paul MackerrasSep 21, 2005
  12. Linus TorvaldsSep 21, 2005
  13. Paul MackerrasSep 21, 2005
  14. Petr BaudisSep 21, 2005
  15. Matthias UrlichsSep 20, 2005
  16. Junio C HamanoSep 20, 2005
  17. Matthias UrlichsSep 20, 2005
  18. Paul MackerrasSep 20, 2005
  19. Pavel RoskinSep 19, 2005
  20. Petr BaudisSep 19, 2005
  21. Pavel RoskinSep 20, 2005
  22. Petr BaudisSep 20, 2005

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.