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

Re: Deprecation/Removal schedule

From
Shawn O. Pearce <spearce@spearce.org>
Date
Feb 5, 2007, 22:55 UTC
Message-ID
<20070205225505.GA9222@spearce.org>
In-Reply-To
<81b0412b0702051449l3951ee43s34bde4614c83612d@mail.gmail.com>
Alex Riesen <raa.lkml@gmail.com> wrote:
Show 8 quoted lines
> On 2/5/07, Shawn O. Pearce <spearce@spearce.org> wrote:
> >I use it daily.  Mainly `git log origin/master@{1}..origin/master`
> >to see what has come in from Junio since my last fetch.  The @{n}
> >syntax has (for me) been one of its best features.  (Thanks Junio!)
> 
> It looks and smells like a useful feature. I just haven't found
> any use for it yet. Besides all the good, it's another part of a repo
> needing maintenance (constantly growing thing, like /var/log).

`git gc` is your friend. It automatically trims the reflogs, keeping only the last 90 days worth of entries. You can tune this with the `gc.reflogexpire` configuration parameter. Seeing as how `git gc` also invokes `git repack -a -d`, `git pack-refs --prune`, etc., one would have to wonder why use anything else.

So its not a constantly growing thing; you can at least bound it
by time.
 
Show 8 quoted lines
> >If the reflog code did fail to record something, and you needed it,
> >and you hadn't git-prune'd yet, git-fsck would list the dangling
> >commit.  And a copy-n-paste session with `git-log -p D --not --all`
> >in another xterm would help you navigate what the dangling commits
> >were.
> 
> Yes, of course. I somehow missed it. Shows how often one does
> git-fsck in cygwin, doesn't it?
:-)

Actually I have need for git-fsck too often on Cygwin; one of my coworkers looses objects all of the time in his repository. I think his harddrive is failed. The zlib CRC checking we put into pack-objects saved his bacon when it failed to repack his repository with corrupt objects.

-- 
Shawn.
Previous: Alex RiesenNext: Alex Riesen
Message 9 of 36 in “Deprecation/Removal schedule”
  1. Junio C HamanoFeb 5, 2007
  2. Shawn O. PearceFeb 5, 2007
  3. Jakub NarebskiFeb 5, 2007
  4. Jakub NarebskiFeb 5, 2007
  5. Shawn O. PearceFeb 5, 2007
  6. Alex RiesenFeb 5, 2007
  7. Shawn O. PearceFeb 5, 2007
  8. Alex RiesenFeb 5, 2007
  9. Shawn O. PearceFeb 5, 2007
  10. Alex RiesenFeb 6, 2007
  11. Johannes SchindelinFeb 6, 2007
  12. Jeff KingFeb 6, 2007
  13. Johannes SchindelinFeb 6, 2007
  14. Alex RiesenFeb 6, 2007
  15. Johannes SchindelinFeb 6, 2007
  16. Alex RiesenFeb 6, 2007
  17. Alex RiesenFeb 6, 2007
  18. Mark WoodingFeb 5, 2007
  19. Johannes SchindelinFeb 5, 2007
  20. Alex RiesenFeb 5, 2007
  21. Linus TorvaldsFeb 5, 2007
  22. Junio C HamanoFeb 5, 2007
  23. Add --patchdepth parameter to git-am.shAndy Parkins, Feb 5, 2007
  24. Shawn O. PearceFeb 5, 2007
  25. Junio C HamanoFeb 7, 2007
  26. Jakub NarebskiFeb 7, 2007
  27. Andy ParkinsFeb 7, 2007
  28. Andreas EricssonFeb 6, 2007
  29. Alex RiesenFeb 6, 2007
  30. Johannes SchindelinFeb 6, 2007
  31. Junio C HamanoFeb 7, 2007
  32. Jakub NarebskiFeb 7, 2007
  33. Johannes SchindelinFeb 7, 2007
  34. Jakub NarebskiFeb 7, 2007
  35. Junio C HamanoFeb 7, 2007
  36. Johannes SchindelinFeb 7, 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.