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

Re: [PATCH] Lower priority of Cogito's default exclude patterns

From
Petr Baudis <pasky@suse.cz>
Date
Jan 21, 2006, 02:04 UTC
Message-ID
<20060121020423.GJ28365@pasky.or.cz>
In-Reply-To
<20060119140728.GA14998@diana.vm.bytemark.co.uk>
Thanks, patch applied and pushed out.

Dear diary, on Thu, Jan 19, 2006 at 03:07:28PM CET, I got a letter where Karl Hasselström <kha@treskal.com> said that...

Show 10 quoted lines
> On 2006-01-19 13:42:44 +0100, Petr Baudis wrote:
> > Oh, now I remember - one my major concern is that now Cogito will
> > not work if not make install'd, which is how I actually primarily
> > use it on my machine.
> 
> The not-installed case could easily be worked around by users if
> cogito looked at /etc/cogito/exclude and ~/.cogito/exclude as well.
> (Or maybe that should be /etc/git/exclude and ~/.gitexclude, so that
> e.g. stgit can use the same files.) Would you accept a patch that did
> this?

Sorry, this doesn't make sense to me - how would that help? The user can as well just make install in that case, instead of manually copying out one file.

	if [ -n "${COGITO_SHARE}" ]; then
		COGITO_REAL_SHARE="${COGITO_SHARE}"
		return
	fi
	if [ "${0%/*}" != "$0" ]; then
		COGITO_REAL_SHARE="${0%/*}/"
		return
	fi
	# I'm not sure if the following normally ever gets triggered.
	# I can only do it by `sh cg-status`. --pasky
	COGITO_REAL_SHARE="./$_git_relpath/"
should work well, though.
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Of the 3 great composers Mozart tells us what it's like to be human,
Beethoven tells us what it's like to be Beethoven and Bach tells us
what it's like to be the universe.  -- Douglas Adams
Previous: Karl Hasselström
Message 4 of 4 in “Lower priority of Cogito's default exclude patterns”
  1. Lower priority of Cogito's default exclude patternsKarl Hasselström, Jan 7, 2006
  2. Petr BaudisJan 19, 2006
  3. Karl HasselströmJan 19, 2006
  4. Petr BaudisJan 21, 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.