* bugreport: stgit cannot export empty patch
@ 2012-05-18 20:57 Stepan Koltsov
2012-05-18 21:20 ` Junio C Hamano
0 siblings, 1 reply; 4+ messages in thread
From: Stepan Koltsov @ 2012-05-18 20:57 UTC (permalink / raw)
To: git
Hi.
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)]
--
Stepan Koltsov
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bugreport: stgit cannot export empty patch
2012-05-18 20:57 bugreport: stgit cannot export empty patch Stepan Koltsov
@ 2012-05-18 21:20 ` Junio C Hamano
2012-05-18 22:26 ` Stepan Koltsov
2013-01-10 23:16 ` bryanlarsen
0 siblings, 2 replies; 4+ messages in thread
From: Junio C Hamano @ 2012-05-18 21:20 UTC (permalink / raw)
To: Stepan Koltsov; +Cc: git
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?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bugreport: stgit cannot export empty patch
2012-05-18 21:20 ` Junio C Hamano
@ 2012-05-18 22:26 ` Stepan Koltsov
2013-01-10 23:16 ` bryanlarsen
1 sibling, 0 replies; 4+ messages in thread
From: Stepan Koltsov @ 2012-05-18 22:26 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
On Sat, May 19, 2012 at 1:20 AM, Junio C Hamano <gitster@pobox.com> wrote:
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bugreport: stgit cannot export empty patch
2012-05-18 21:20 ` Junio C Hamano
2012-05-18 22:26 ` Stepan Koltsov
@ 2013-01-10 23:16 ` bryanlarsen
1 sibling, 0 replies; 4+ messages in thread
From: bryanlarsen @ 2013-01-10 23:16 UTC (permalink / raw)
To: git
Junio C Hamano writes:
> Stepan Koltsov <stepan.koltsov@> 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?
Here's another example where the functionality is useful:
https://github.com/Hobo/agility-gitorial-patches is used to build
http://cookbook.hobocentral.net/tutorials/agility
Each commit/patch becomes a step in the tutorial. Some tutorial steps don't
have any code attached to them.
In the past, an export of an empty commit would yield a patch where the last
three lines were
> ---
> 0 files changed, 0 insertions(+), 0 deletions(-)
>
The latest version of stgit along with git v1.6 eliminates the error. A
bisection identifies cc64b318f26c9e176c4f07b1a459a86e7a04c4eb as the source
of the problem.
Thanks,
Bryan
--
View this message in context: http://git.661346.n2.nabble.com/bugreport-stgit-cannot-export-empty-patch-tp7559494p7574691.html
Sent from the git mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-01-10 23:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-18 20:57 bugreport: stgit cannot export empty patch Stepan Koltsov
2012-05-18 21:20 ` Junio C Hamano
2012-05-18 22:26 ` Stepan Koltsov
2013-01-10 23:16 ` bryanlarsen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).