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

Re: [PATCH] Fix file mark handling and sort side-effects in git.el

From
AJAlexandre Julliard <julliard@winehq.org>
Date
Feb 11, 2009, 10:56 UTC
Message-ID
<87hc31kzrb.fsf@wine.dyndns.org>
In-Reply-To
<18834.27724.991388.339214@hungover.brentg.com>
Brent Goodrick <bgoodr@gmail.com> writes:
> The `sort' Elisp function works destructively, causing anomalies where
> operations on multiple files would be performed on one file.  This
> checkin works around that by doing a deep copy with `append'.

This shouldn't be necessary, it's OK for git-status-update-files to destroy the list. If there are callers that want the list to be preserved they should save it themselves.

Show 5 quoted lines
> Also, git-add-file needed to pass 'modified to git-marked-files-state,
> as otherwise, files that are modified but not yet in the index would
> not show up in the git-marked-files-state return value, which would
> then cause a prompt for file to show up when the files are clearly
> marked in the status buffer.

Not sure what you mean here, it should not be possible for a file to be in modified state but not in the index. If you mean using git-add-file to do an update-index on an already tracked file, that's not what it's meant to do.

-- 
Alexandre Julliard
julliard@winehq.org
Previous: Brent GoodrickNext: Brent Goodrick
Message 2 of 7 in “Fix file mark handling and sort side-effects in git.el”
  1. Fix file mark handling and sort side-effects in git.elBrent Goodrick, Feb 11, 2009
  2. Alexandre JulliardFeb 11, 2009
  3. Brent GoodrickFeb 12, 2009
  4. Alexandre JulliardFeb 15, 2009
  5. Brent GoodrickFeb 15, 2009
  6. Alexandre JulliardFeb 15, 2009
  7. Brent GoodrickFeb 16, 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.