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

Re: kha/safe and kha/experimental updated

From
CMCatalin Marinas <catalin.marinas@gmail.com>
Date
Dec 19, 2007, 10:09 UTC
Message-ID
<b0943d9e0712190209y485bc2f8w806bd2cad309e74b@mail.gmail.com>
In-Reply-To
<20071219093400.GA4361@diana.vm.bytemark.co.uk>
On 19/12/2007, Karl Hasselström <kha@treskal.com> wrote:
Show 20 quoted lines
> On 2007-12-18 16:09:24 +0000, Catalin Marinas wrote:
>
> > On 18/12/2007, Karl Hasselström <kha@treskal.com> wrote:
> >
> > >       "stg status --reset" is not needed anymore
> >
> > I would keep this as an alias for 'git reset --hard' (see below as
> > well).
> >
> > >       Remove "stg add"
> > >       Remove "stg rm"
> > >       Remove "stg cp"
> >
> > I plan to add a generic command for these kind of aliases. The
> > reason is that I don't really like mixing GIT and StGIT commands (I
> > think at some point I'll get confused and try to run stg commands
> > with git).
>
> How should these aliases be presented in the documentation etc.? I
> suggest making it very clear that they are only aliases.

Yes, 'stg help' should clearly mark them as aliases of git commands. I'm not sure how I'll do this yet. For the 'status --reset', I'll keep it if we have a separate 'resolved' command.

Show 7 quoted lines
> > >       Remove "stg resolved"
> >
> > I'd like to keep this command. git-mergetool doesn't support the
> > tool I use (emacs + ediff and more stgit-specific file extensions
> > like current, patch etc.).
>
> So why have a separate command instead of fixing git-mergetool?

In the past, StGIT only used the core git functionality and stayed away from the porcelain scripts. We now started to use some of the built-in commands more and more and I think it is fine but the git scripts look more volatile to me than the C code (look at the many variants the git merging went through, from shell scripts to python and only now seems to be stabilised with the recursive merge as a built-in command).

Adding the functionality I need to git-mergetool would also mean always using the latest GIT with StGIT. Anyway, if you like git-mergetool, I think you can easily change the StGIT configuration to

> > I also don't find 'git add' to be meaningful for marking a conflict
> > as solved.
>
> So maybe let "stg resolved" be an alias for "git add"?

It's not a simple alias, if you use 'stg resolved -a'. Now, if we allow stgit.keeporig, it needs even more functionality.

Show 6 quoted lines
> This is all our usual disagreement: You want stg to be a fairly
> standalone tool, and I want it to be a tool to use side by side with
> git. The problem I see with your approach is that stg risks ending up
> like Cogito: it'll provide inspiration for improving git, but will
> itself become obsolete because of the simple fact that git has so much
> more development manpower.

If GIT would have all the functionality I need for my workflow, I wouldn't mind giving up StGIT (I started StGIT because I needed easier patch management on top of GIT and modifying Quilt would've been too intrusive).

> I think it'd be more productive to let stg
> do one thing -- patch stacks -- and do it well, and rely on git for
> everything else.

In principle, yes, but I have some minor problems with the UI of GIT (like resolved == add). I think there is also a fundamental difference between 'git commit' and 'stg refresh'. The former requires explicit marking of the files to commit (or use the -a option) while the latter always adds all the local changes to the current patch. Maybe GIT users are more used to running 'git add' after fixing a conflict but I use StGIT almost exclusively.

> Of course, if stuff like "stg add" and "stg resolved" are really
> implemented as three-line wrappers around git commands, we don't have
> that problem.

For add/rm/cp, they should just be a generic wrapper which doesn't even parse the command line options. That's not the case with 'resolved'.

-- 
Catalin
Previous: Karl HasselströmNext: Karl Hasselström
Message 37 of 57 in “Series short description”
  1. 00/17 Series short descriptionDavid Kågedal, Dec 14, 2007
  2. 01/17 Add an StGit mode for emacsDavid Kågedal, Dec 14, 2007
  3. 02/17 Emacs mode: Show keybindings when user presses "h" or "?"David Kågedal, Dec 14, 2007
  4. 03/17 Emacs mode: Add an explanatory headerDavid Kågedal, Dec 14, 2007
  5. 04/17 Emacs mode: Makefile for building stgit.elDavid Kågedal, Dec 14, 2007
  6. 05/17 Emacs mode: push/pop next patch, not patch at pointDavid Kågedal, Dec 14, 2007
  7. 06/17 Emacs mode: Let "P" push or pop patch at pointDavid Kågedal, Dec 14, 2007
  8. 07/17 Emacs mode: Bind "G" to "stg goto"David Kågedal, Dec 14, 2007
  9. 08/17 Emacs mode: show patches' short descriptionDavid Kågedal, Dec 14, 2007
  10. 09/17 Emacs mode: Improve the output buffer stateDavid Kågedal, Dec 14, 2007
  11. 10/17 Emacs mode: Bind n and pDavid Kågedal, Dec 14, 2007
  12. 11/17 Emacs mode: add stgit-repairDavid Kågedal, Dec 14, 2007
  13. 12/17 Emacs mode: added stgit-commit and stgit-uncommitDavid Kågedal, Dec 14, 2007
  14. 13/17 Emacs mode: Add stgit-edit commandDavid Kågedal, Dec 14, 2007
  15. 14/17 Emacs mode: added fontificationDavid Kågedal, Dec 14, 2007
  16. 15/17 Emacs mode: Added stgit-newDavid Kågedal, Dec 14, 2007
  17. 16/17 Emacs mode: Add mark commandDavid Kågedal, Dec 14, 2007
  18. 17/17 Emacs mode: coalesce commandDavid Kågedal, Dec 14, 2007
  19. Catalin MarinasDec 17, 2007
  20. Karl HasselströmDec 17, 2007
  21. kha/safe and kha/experimental updatedKarl Hasselström, Dec 18, 2007
  22. Catalin MarinasDec 18, 2007
  23. Jakub NarebskiDec 18, 2007
  24. Catalin MarinasDec 18, 2007
  25. David KågedalDec 19, 2007
  26. David KågedalDec 19, 2007
  27. Catalin MarinasDec 19, 2007
  28. Karl HasselströmDec 19, 2007
  29. Jakub NarebskiDec 19, 2007
  30. Karl HasselströmDec 19, 2007
  31. Catalin MarinasDec 19, 2007
  32. Jakub NarebskiDec 19, 2007
  33. Catalin MarinasDec 19, 2007
  34. David KågedalDec 19, 2007
  35. Karl HasselströmDec 19, 2007
  36. Karl HasselströmDec 19, 2007
  37. Catalin MarinasDec 19, 2007
  38. Karl HasselströmDec 19, 2007
  39. Catalin MarinasDec 19, 2007
  40. Karl HasselströmDec 19, 2007
  41. Catalin MarinasDec 19, 2007
  42. Catalin MarinasDec 19, 2007
  43. David KågedalDec 19, 2007
  44. Catalin MarinasDec 18, 2007
  45. David KågedalDec 18, 2007
  46. Karl HasselströmDec 18, 2007
  47. 0/2 Make new infrastructure subdirectory safeKarl Hasselström, Dec 19, 2007
  48. 1/2 Test that "stg goto" can be called from a subdirectoryKarl Hasselström, Dec 19, 2007
  49. 2/2 Make "stg goto" subdirectory safeKarl Hasselström, Dec 19, 2007
  50. kha/safe updatedKarl Hasselström, Dec 19, 2007
  51. Catalin MarinasDec 19, 2007
  52. Karl HasselströmDec 19, 2007
  53. Catalin MarinasDec 19, 2007
  54. Karl HasselströmDec 20, 2007
  55. David KågedalDec 19, 2007
  56. Karl HasselströmDec 20, 2007
  57. Karl HasselströmDec 19, 2007

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.