{"thread":{"id":"8867","subject":"[StGIT PATCH] Document shortcoming of stg-k and stg-unnew.","startedAt":"2007-07-04T19:18:47Z","lastAt":"2007-07-04T19:18:47Z","messageCount":1,"participants":["Yann Dirson"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"46506","messageId":"20070704191846.15788.35842.stgit@gandelf.nowhere.earth","threadId":"8867","inReplyTo":null,"subject":"[StGIT PATCH] Document shortcoming of stg-k and stg-unnew.","fromName":"Yann Dirson","fromEmail":"ydirson@altern.org","sentAt":"2007-07-04T19:18:47Z","receivedAt":"2007-07-04T19:18:47Z","isPatch":true,"sender":{"key":"ydirson@altern.org","avatar":"https://avatars.githubusercontent.com/u/1190950?v=4"},"body":"Signed-off-by: Yann Dirson <ydirson@altern.org>\n---\n\n contrib/stg-k     |    8 +++++---\n contrib/stg-unnew |    3 +++\n 2 files changed, 8 insertions(+), 3 deletions(-)\n\ndiff --git a/contrib/stg-k b/contrib/stg-k\nindex 0134c25..62211be 100755\n--- a/contrib/stg-k\n+++ b/contrib/stg-k\n@@ -8,11 +8,13 @@ set -e\n # essence, \"stg-k pop\" is a \"stg pop -k\" that works better, hence its\n # name.\n \n-# CAVEAT: this script relies on the operation to run ignoring hidden\n+# CAVEATS:\n+# - this script relies on the operation to run ignoring hidden\n # patches, so in 0.12 (where \"stg push\" can push an hidden patch)\n # \"stg-k push\" will fail midway, albeit with no information loss -\n-# you'll just have to finish manually.  Luckilly this appears to work\n-# on master branch.\n+# you'll just have to finish manually.  This is fixed in 0.13\n+# - running this script to pop all patches in the stack fails, since\n+# stg-unnew does not support this case.\n \n # Copyright (c) 2007 Yann Dirson <ydirson@altern.org>\n # Subject to the GNU GPL, version 2.\ndiff --git a/contrib/stg-unnew b/contrib/stg-unnew\nindex 5ac8781..2a38264 100755\n--- a/contrib/stg-unnew\n+++ b/contrib/stg-unnew\n@@ -6,6 +6,9 @@ set -e\n # Remove the current patch from the stack, keeping its contents as\n # uncommitted changes.\n \n+# CAVEAT: running this script on the bottom-most patch fails, since\n+# \"stg pick --fold\" does not allow this situation.\n+\n # Copyright (c) 2007 Yann Dirson <ydirson@altern.org>\n # Subject to the GNU GPL, version 2.\n \n"}]}