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

Re: stgit error on status command

From
Karl Hasselström <kha@treskal.com>
Date
Jul 8, 2008, 12:25 UTC
Message-ID
<20080708122502.GA8838@diana.vm.bytemark.co.uk>
In-Reply-To
<9e4733910807080506k6d51bc98h96a7a7b2bd56d98b@mail.gmail.com>
On 2008-07-08 08:06:04 -0400, Jon Smirl wrote:
Show 13 quoted lines
> On 7/8/08, Karl Hasselström <kha@treskal.com> wrote:
>
> > Thanks for the report.
> >
> > The problem is that we mis-parse the output of git diff-index when
> > rename detection is on (and it prints more than one filename on
> > one line). This happens if you give stg status the --diff-opts=-M
> > flag, but you didn't -- but it could also happen if you have the
> > stgit.diff-opts config variable set.
>
> I have -M in my config file. If I don't use people on lkml complain
> about renames generating piles of output in the patches. I'm able to
> work around the problem for the moment.

Oh, I'm certainly not suggesting that you shouldn't have -M in your stgit.diff-opts -- just that dropping it for the moment is a workaround to your problem.

Hmm. Another workaround is to pass an explicit --diff-opts="" to stg status; that'll override your stgit.diff-opts, and avoid triggering the bug.

But with any luck, I'll have this fixed within 4-6 hours or so.
-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Previous: Jon SmirlNext: Karl Hasselström
Message 4 of 6 in “stgit error on status command”
  1. Jon SmirlJul 7, 2008
  2. Karl HasselströmJul 8, 2008
  3. Jon SmirlJul 8, 2008
  4. Karl HasselströmJul 8, 2008
  5. stg status rename fix (safe+experimental)Karl Hasselström, Jul 8, 2008
  6. Test "stg status" with -M in stgit.diff-optsKarl Hasselström, Jul 8, 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.