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

Re: [RFC] allow file list editing during cg-commit

From
Petr Baudis <pasky@ucw.cz>
Date
May 9, 2005, 08:46 UTC
Message-ID
<20050509084606.GD3599@pasky.ji.cz>
In-Reply-To
<1115627229.8949.132.camel@pegasus>

Dear diary, on Mon, May 09, 2005 at 10:27:09AM CEST, I got a letter where Marcel Holtmann <marcel@holtmann.org> told me that...

> Hi Eugene,
Hello,
Show 8 quoted lines
> > I just started playing with cogito and failed to find _easy_ way to
> > select which files will be committed and which won't. cg-commit seems
> > to support specifying file list in command line, but this isn't very
> > convenient when the list is big.
> 
> do you know any SCM native text interface that supports such a thing? In
> general this is done by high-level GUI based interfaces to the SCM or a
> special Emacs mode etc.

so what? I still think the idea is cool, why shouldn't support it if noone else does?

The only thing to watch out for is that cg-commit -C produces no such list at all; it should deal with that and tell the user he is not going to be able to control what is going to be committed then.

Another thing is that at the moment you modify the file list, you should set customfiles - otherwise you will commit even cg-adds and cg-rms of files you didn't select. But do that really only when you change the file list, since it is more expensive.

You should also place an appropriate hint near the CG: lines, saying that removing some of them will limit the list of files to be committed.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor
Previous: Eugene SuroveginNext: Eugene Surovegin
Message 4 of 6 in “[RFC] allow file list editing during cg-commit”
  1. Eugene SuroveginMay 9, 2005
  2. Marcel HoltmannMay 9, 2005
  3. Eugene SuroveginMay 9, 2005
  4. Petr BaudisMay 9, 2005
  5. Eugene SuroveginMay 9, 2005
  6. Jonas FonsecaMay 9, 2005

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.