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

Re: [PATCH] Unclutter cg status with --directory as GIT does

From
Petr Baudis <pasky@suse.cz>
Date
Mar 29, 2006, 14:54 UTC
Message-ID
<20060329145427.GI27689@pasky.or.cz>
In-Reply-To
<20060329142559.12059.52795.stgit@zion.home.lan>

Dear diary, on Wed, Mar 29, 2006 at 04:25:59PM CEST, I got a letter where Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> said that...

Show 5 quoted lines
> Pass the new --directory option (from git 1.1) to git-ls-others for
> list_untracked_files, as does git-status - it's very useful.
> 
> Probably this must be deferred to when the git 1.1 dependency is added, however
> please queue it for then.
Uh, I'm confused. Cogito now depends on git-1.1, and
Show 10 quoted lines
> diff --git a/cg-Xlib b/cg-Xlib
> index 2b93c11..3150470 100644
> --- a/cg-Xlib
> +++ b/cg-Xlib
> @@ -274,7 +274,7 @@ list_untracked_files()
>  	fi
>  	local listdirs=
>  	[ "$squashflag" = "squashdirs" ] && listdirs=--directory
> -	git-ls-files -z --others $listdirs "${EXCLUDE[@]}"
> +	git-ls-files -z --others --directory $listdirs "${EXCLUDE[@]}"

as you can see, if list_untracked_files was pssed the 'squashdirs' option, it will already pass it. What cg command would you like to squash dirs except cg-status?

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Right now I am having amnesia and deja-vu at the same time.  I think
I have forgotten this before.
Previous: Paolo 'Blaisorblade' GiarrussoNext: Blaisorblade
Message 2 of 4 in “Unclutter cg status with --directory as GIT does”
  1. Unclutter cg status with --directory as GIT doesPaolo 'Blaisorblade' Giarrusso, Mar 29, 2006
  2. Petr BaudisMar 29, 2006
  3. BlaisorbladeMar 29, 2006
  4. Petr BaudisMar 29, 2006

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.