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

Re: [PATCH 1/4] Add 2 new contrib scripts.

From
David Kågedal <davidk@lysator.liu.se>
Date
Jun 1, 2007, 09:22 UTC
Message-ID
<87fy5cqbaz.fsf@morpheus.local>
In-Reply-To
<20070531223423.6005.59088.stgit@gandelf.nowhere.earth>
Yann Dirson <ydirson@altern.org> writes:
Show 22 quoted lines
> diff --git a/contrib/stg-unnew b/contrib/stg-unnew
> new file mode 100755
> index 0000000..5ac8781
> --- /dev/null
> +++ b/contrib/stg-unnew
> @@ -0,0 +1,15 @@
> +#!/bin/sh
> +set -e
> +
> +# stg-unnew - sort of "reverse an 'stg new'"
> +
> +# Remove the current patch from the stack, keeping its contents as
> +# uncommitted changes.
> +
> +# Copyright (c) 2007 Yann Dirson <ydirson@altern.org>
> +# Subject to the GNU GPL, version 2.
> +
> +patch=$(stg top)
> +stg pop
> +stg pick --fold $patch
> +stg delete $patch
>

This is something I've been missing. But I'd call it "stg merge" or something, since what it does is that it merges the top patch into the patch below it. But since "merge" means something else to git, it might not be the best choice.

-- 
David Kågedal
Previous: Yann DirsonNext: Karl Hasselström
Message 3 of 10 in “Rename detection, take 2”
  1. 0/4 Rename detection, take 2Yann Dirson, May 31, 2007
  2. 1/4 Add 2 new contrib scripts.Yann Dirson, May 31, 2007
  3. David KågedalJun 1, 2007
  4. Karl HasselströmJun 3, 2007
  5. Yann DirsonJun 3, 2007
  6. 2/4 Call external commands without a shell where possible.Yann Dirson, May 31, 2007
  7. 3/4 Make diff flags handling more modular.Yann Dirson, May 31, 2007
  8. 4/4 Add new --diff-opts/-O flag to diff- and status-related commands.Yann Dirson, May 31, 2007
  9. Catalin MarinasJun 4, 2007
  10. Yann DirsonJun 5, 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.