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

Re: [PATCH 1/2] cvsexportcommit: chomp only removes trailing whitespace

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
May 14, 2008, 22:15 UTC
Message-ID
<alpine.DEB.1.00.0805142313280.30431@racer>
In-Reply-To
<200805142206.53242.robin.rosenberg@dewire.com>
Hi,
On Wed, 14 May 2008, Robin Rosenberg wrote:
> > Yes, that is the idea.  The point is: there are at least two different 
> > implementations of cvs, and I do not want to rely on a particular one.
> 
> Does CVSNT add extra spaces?
Probably.  At least a CR I would expect.
> A question arises. Can we use cvs update instead? It can be used to 
> retrieve the latest version (as the -u flag to cvsexportcommit does) and 
> it will tell you what status each affected file has. cvs update -n will 
> just give us the status with unambigous file names.

Will it? The thing is: as far as I can see, cvs is only "porcelain", i.e. the output is meant for users' consumption, not scripts'.

So I wanted to be safe, and strip all leading and trailing whitespace, call "cvs status" (if necessary, in several runs, so that no ambiguous file names can be returned).

Ciao, Dscho

Previous: Robin RosenbergNext: Johannes Schindelin
Message 6 of 9 in “cvsexportcommit: chomp only removes trailing whitespace”
  1. 1/2 cvsexportcommit: chomp only removes trailing whitespaceJohannes Schindelin, May 14, 2008
  2. 2/2 cvsexportcommit: introduce -W for shared working trees (between Git and CVS)Johannes Schindelin, May 14, 2008
  3. Junio C HamanoMay 14, 2008
  4. Johannes SchindelinMay 14, 2008
  5. Robin RosenbergMay 14, 2008
  6. Johannes SchindelinMay 14, 2008
  7. 1/2 cvsexportcommit: chomp only removes trailing whitespaceJohannes Schindelin, May 14, 2008
  8. Junio C HamanoMay 15, 2008
  9. Johannes SchindelinMay 15, 2008

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.