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

Re: [PATCH v2] do not overwrite untracked during merge from unborn branch

From
Miles Bader <miles@gnu.org>
Date
Nov 15, 2010, 01:51 UTC
Message-ID
<87r5enbbhx.fsf@catnip.gol.com>
In-Reply-To
<20101114215315.GB29579@localhost>
Clemens Buchacher <drizzd@aon.at> writes:
> Wrong again! (With args[6] instead of args[7].)  I wonder how many
> times I can get it wrong.

Hmm, well the use of external processes to implement such seemingly basic functionality doesn't exactly help with the argument checking...

... and now that I look (though only briefly :), builtin/read-tree.c seems almost trivial -- with the bulk of the code devoted to argument parsing, error reporting, and handling different cases...!

Maybe it would be better to just rewrite "read_empty" (and "reset_hard"?) in terms of the underlying functions read-tree.c uses?

-Miles
-- 
`Cars give people wonderful freedom and increase their opportunities.
 But they also destroy the environment, to an extent so drastic that
 they kill all social life' (from _A Pattern Language_)
Previous: Clemens BuchacherNext: Clemens Buchacher
Message 8 of 9 in “pulling the root commit overwrites untracked files without warning (1.7.2.3)”
  1. Gert PalokOct 21, 2010
  2. Clemens BuchacherOct 22, 2010
  3. Clemens BuchacherOct 22, 2010
  4. Clemens BuchacherNov 14, 2010
  5. do not overwrite untracked during merge from unborn branchClemens Buchacher, Nov 14, 2010
  6. do not overwrite untracked during merge from unborn branchClemens Buchacher, Nov 14, 2010
  7. do not overwrite untracked during merge from unborn branchClemens Buchacher, Nov 14, 2010
  8. Miles BaderNov 15, 2010
  9. do not overwrite untracked during merge from unborn branchClemens Buchacher, Nov 14, 2010

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.