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

Re: git emacs mode patch

From
AJAlexandre Julliard <julliard@winehq.org>
Date
Mar 17, 2007, 10:04 UTC
Message-ID
<87y7lwxk2e.fsf@wine.dyndns.org>
In-Reply-To
<200703151403.56552.mega@retes.hu>
Gábor Melis <mega@retes.hu> writes:
> +(defcustom git-hide-unknown t
> +  "Hide files with unknown status by default."
> +  :group 'git
> +  :type 'boolean)
This one should default to nil for backwards compatibility.
Show 11 quoted lines
> @@ -1017,15 +1028,18 @@ and returns the process output as a string."
>        (with-temp-buffer
>          (git-run-command t nil "diff-index" "-z" "-M" "HEAD")
>          (git-parse-status status)))
> +    (unless (member 'up-to-date hidden-statuses)
>        (with-temp-buffer
> -        (git-run-command t nil "ls-files" "-z" "-u")
> -        (git-parse-ls-unmerged status))
> +        (git-run-command t nil "ls-files" "-z" "-t")
> +        (git-parse-ls-files status 'unknown)))
> +    (unless (member 'unknown hidden-statuses)

Why are you removing the ls-files -u? This will break the detection of unmerged files.

Show 5 quoted lines
> +(defun git-toggle-up-to-date ()
> +  (interactive)
> +  (if (member 'up-to-date hidden-statuses)
> +      (setq hidden-statuses (remove 'up-to-date hidden-statuses))
> +    (push 'up-to-date hidden-statuses))

The status should be named 'uptodate instead of 'up-to-date since that's what's used for individual files. Having two different spellings for the same word would be very confusing.

-- 
Alexandre Julliard
julliard@winehq.org
Previous: Gábor MelisNext: Gábor Melis
Message 2 of 4 in “git emacs mode patch”
  1. Gábor MelisMar 15, 2007
  2. Alexandre JulliardMar 17, 2007
  3. Gábor MelisMar 25, 2007
  4. Alexandre JulliardMar 26, 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.