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

Re: a few remaining issues...

From
JRJuergen Ruehle <j.ruehle@bmiag.de>
Date
Jan 5, 2007, 16:54 UTC
Message-ID
<17822.33497.895000.694542@lapjr.intranet.kiel.bmiag.de>
In-Reply-To
<7v7iw1hgvt.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano writes:
 > * Handling paths that are unknown to the index.
 > 
 > I sent out patches tonight to teach "git reset <tree> -- <path>"
 > to restore the absense of path in the index from the tree
 > tonight.  There was another one recently brought up on the list:
 > "git commit -- <path>" for path that is no longer known to the
 > index.  While jumping the index is a practice I particularly do
 > not want to encourage by extending git to support it, we already
 > have support for most of the cases, so I think it makes sense to
 > do this for consistency.  I haven't thought about the necessary
 > changes yet, so people can beat me if they want to.  My vague
 > idea is to check HEAD to see if <path> exists and if so refrain
 > from complaining.

This looks like a job for your para-walk topic. For this git-commit case we just need a

  git-ls --no-workdir --error-unmatch HEAD -- <pattern>...

to replace git-ls-files. To my untrained eyes it looks like this is mostly there (AFAICS it doesn't do pattern matching and the --error-unmatch thingy).

Previous: Johannes SchindelinNext: Junio C Hamano
Message 14 of 16 in “a few remaining issues...”
  1. Junio C HamanoJan 5, 2007
  2. Alex RiesenJan 5, 2007
  3. Johannes SchindelinJan 10, 2007
  4. Alex RiesenJan 10, 2007
  5. Johannes SchindelinJan 10, 2007
  6. Alex RiesenJan 10, 2007
  7. Johannes SchindelinJan 5, 2007
  8. Shawn O. PearceJan 5, 2007
  9. Johannes SchindelinJan 9, 2007
  10. Junio C HamanoJan 9, 2007
  11. Johannes SchindelinJan 9, 2007
  12. Shawn O. PearceJan 10, 2007
  13. Johannes SchindelinJan 10, 2007
  14. Juergen RuehleJan 5, 2007
  15. Junio C HamanoJan 8, 2007
  16. Junio C HamanoJan 8, 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.