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

Re: [STGIT PATCH] replace "git repo-config" usage by "git config"

From
Karl Hasselström <kha@treskal.com>
Date
Jan 24, 2008, 07:01 UTC
Message-ID
<20080124070125.GA19653@diana.vm.bytemark.co.uk>
In-Reply-To
<b0943d9e0801230842w250ab963t16a1ab3c8024487e@mail.gmail.com>
On 2008-01-23 16:42:41 +0000, Catalin Marinas wrote:
Show 20 quoted lines
> On 23/01/2008, Karl Hasselström <kha@treskal.com> wrote:
>
> > On 2008-01-23 11:35:03 +0000, Catalin Marinas wrote:
> >
> > > The 'goto' checks the local status before pushing
> >
> > No, it doesn't anymore
>
> Ah, OK. BTW, even if the tree was clean, a 'goto' failed on my Linux
> tree earlier today with the following message:
>
> $ stg goto realview-eb-header
> Popped realview-pb1176 -- realview-ioaddress
> fatal: Entry 'arch/arm/mach-realview/realview_pb11mp.c' not uptodate.
> Cannot merge.
> stg goto: Command aborted (all changes rolled back)
>
> It worked fine after running 'stg status' once (and not showing any
> changes). In the old GIT interface, we use to call refresh_index (i.e.
> 'git update-index -q --unmerged --refresh'). Does this still happen?

Ah, no, I guess it doesn't. And I guess it should. We should probably have a test for that ...

> The message above also shows what I meant with messages not being
> very clear. It reports "Popped" but actually failed. Showing
> "Popping ... done" would be better.

Not necessarily. Even with the latter message style, you'd sometimes get sequences like this:

  Popping p3 -- p1 ... done
  Pushing p4 ... done
  Pushing p5 ... done
  fatal: Entry 'some/annoying/file' not uptodate.
  Cannot merge.
  stg cool-command: Command aborted (all changes rolled back)

That is, the sequence of pushes and pops succeeded, but the changes were still rolled back due to a dirty worktree.

Now, this doesn't mean I don't agree with you about the "done" messages -- they serve as a kind of progress bar -- but just because it says "done" doesn't mean the change will still be in effect when the command returns.

And there should probably be an explicit "Checking out files ... done" stage when we run git-read-tree, since that tends to take relatively much time.

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Previous: Catalin MarinasNext: Catalin Marinas
Message 18 of 21 in “Remove repo-config”
  1. Remove repo-configDan McGee, Jan 16, 2008
  2. Junio C HamanoJan 16, 2008
  3. Dan McGeeJan 16, 2008
  4. Junio C HamanoJan 16, 2008
  5. Junio C HamanoJan 16, 2008
  6. Junio C HamanoJan 16, 2008
  7. Peter OberndorferJan 16, 2008
  8. replace "git repo-config" usage by "git config"Peter Oberndorfer, Jan 16, 2008
  9. Jakub NarebskiJan 16, 2008
  10. Peter OberndorferJan 16, 2008
  11. Catalin MarinasJan 17, 2008
  12. Jakub NarebskiJan 17, 2008
  13. Karl HasselströmJan 17, 2008
  14. Karl HasselströmJan 18, 2008
  15. Catalin MarinasJan 23, 2008
  16. Karl HasselströmJan 23, 2008
  17. Catalin MarinasJan 23, 2008
  18. Karl HasselströmJan 24, 2008
  19. Catalin MarinasJan 24, 2008
  20. Karl HasselströmJan 24, 2008
  21. Catalin MarinasJan 24, 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.