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

Re: bugreport: stgit cannot export empty patch

From
SKStepan Koltsov <stepan.koltsov@jetbrains.com>
Date
May 18, 2012, 22:26 UTC
Message-ID
<CAPk5vtyc1gHB=31CPDpk=s4QE+Wtp-8wMJDuV1F=R11MfERdTw@mail.gmail.com>
In-Reply-To
<xmqqboll2nl0.fsf@junio.mtv.corp.google.com>
On Sat, May 19, 2012 at 1:20 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 23 quoted lines
> Stepan Koltsov <stepan.koltsov@jetbrains.com> writes:
>
>> stgit fails to export empty patches:
>>
>> % stg new empty-patch -m 'asasas'
>> Now at patch "empty-patch"
>> % stg export empty-patch
>> Checking for changes in the working directory ... done
>> fatal: unrecognized input
>> stg export: git failed with code 128
>> zsh: exit 2     stg export empty-patch
>>
>> % stg --version
>> Stacked GIT 0.16-3-g67cf
>> git version 1.7.9.1
>> Python version 2.7.1 (r271:86832, Jul 31 2011, 19:30:53)
>> [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)]
>
> I don't use (or read the sources to) StGIT, but isn't the whole point of
> "stg export" to "convert your StGIT patches into patch files"?  For an
> empty commit, what is an appropriate output?  IOW, is it reasonable to
> have an empty commit in your history if you are planning to "stg export"
> it?

I'm executing stg export to back up. If series contains empty patches, backup fails.

Scenario: I started some work, created new empty patch, but did
nothing, decided to go home, and do backup of the whole series before
leaving. Backup fails.
AFAIU there's no simpler way to backup stg series than executing
% stg export `stg series --noprefix`
-- 
Stepa
Previous: Junio C HamanoNext: bryanlarsen
Message 3 of 4 in “bugreport: stgit cannot export empty patch”
  1. Stepan KoltsovMay 18, 2012
  2. Junio C HamanoMay 18, 2012
  3. Stepan KoltsovMay 18, 2012
  4. bryanlarsenJan 10, 2013

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.