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

[PATCH/RFC 0/3] teach fetch --prune

From
Jay Soffian <jaysoffian@gmail.com>
Date
Nov 6, 2009, 05:10 UTC
Message-ID
<1257484241-27219-1-git-send-email-jaysoffian@gmail.com>
This is just a start so I can get some feedback. Some things still missing:
1) "git remote prune <remote>" calls warn_dangling_symref(), but 
"git fetch --prune" does not. I ran out of time tonight to refactor 
warn_dangling_symref() to do something more intelligent than just spew to
stdout (which doesn't get along with fetch, which spews to stderr...).
2) Perhaps "git remote update --prune" should be refactored to call 
"git fetch --prune". If so, then fetch should gain a "--prune-only" option
so that "git remote prune" can just call "got fetch --prune-only".
3) Perhaps add a config option for users who wish to prune by default.
Thoughts, comments, flames?
Jay Soffian (3):
  remote: refactor some logic into get_stale_heads()
  builtin-fetch: add --dry-run option
  builtin-fetch: add --prune option
 builtin-fetch.c  |   30 +++++++++++++++++++++++++++---
 builtin-remote.c |   32 ++++++++------------------------
 remote.c         |   40 ++++++++++++++++++++++++++++++++++++++++
 remote.h         |    3 +++
 4 files changed, 78 insertions(+), 27 deletions(-)
Next: Jay Soffian
Message 1 of 5 in “teach fetch --prune”
  1. 0/3 teach fetch --pruneJay Soffian, Nov 6, 2009
  2. 1/3 remote: refactor some logic into get_stale_heads()Jay Soffian, Nov 6, 2009
  3. 2/3 builtin-fetch: add --dry-run optionJay Soffian, Nov 6, 2009
  4. 3/3 builtin-fetch: add --prune optionJay Soffian, Nov 6, 2009
  5. Junio C HamanoNov 6, 2009

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.