• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Mercurial Queues Emulation for Git


Commit MetaInfo

Revisión03e96d9d2237d90ada6259f1d97e1e5d5824a5ce (tree)
Tiempo2022-02-08 20:13:41
AutorKeith Marshall <keith@user...>
CommiterKeith Marshall

Log Message

Handle "git qfold" operations with no commit message.

* git-qfold.shar (mq_msg_file) [no content]: Insert default text; this
is required to ensure that a commit message is available, when running
"git commit", to complete the "git qfold" operation.

Cambiar Resumen

Diferencia incremental

--- a/git-qfold.shar
+++ b/git-qfold.shar
@@ -6,7 +6,7 @@
66 # $Id$
77 #
88 # Written by Keith Marshall <keith@users.osdn.me>
9-# Copyright (C) 2019, Keith Marshall
9+# Copyright (C) 2019, 2022, Keith Marshall
1010 #
1111 #
1212 # This file is part of the Git-MQ program suite.
@@ -202,7 +202,14 @@ printf '%s\n' "$@" | awk >&2 "$mq_series $mq_status $mq_error_handler"'
202202 }
203203 close( cmd );
204204 }
205-# ...generate an updated copy of the series file, omitting entries
205+# ...checking that at least one of the folded patches has contributed
206+# content to this commit message, but providing a default, on which we
207+# may fall back, in the event that none has...
208+#
209+ if( ! mq_msg_lines )
210+ { print "[Git-MQ]: '"$mq_patchname"'" > "'"$mq_msg_file"'";
211+ }
212+# ...then generate an updated copy of the series file, omitting entries
206213 # for each of the folded patches...
207214 #
208215 for( idx = 0; entries > idx; idx++ )