• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

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

修訂f7dc1b98cfc8a369f4651860fa4e03f806ac79ba (tree)
時間2022-02-12 03:11:54
作者Keith Marshall <keith@user...>
CommiterKeith Marshall

Log Message

Update commit timestamp on "git qrefresh" or "git qfold".

* git-mq-write-patch.sh [git qfold, git qrefresh]
[mq_commit_date unassigned] (mq_commit_date): Assign as "now", in the
form produced by running the "date +'%s %z'" command.

Change Summary

差異

--- a/git-mq-write-patch.sh
+++ b/git-mq-write-patch.sh
@@ -10,7 +10,7 @@
1010 # $Id$
1111 #
1212 # Written by Keith Marshall <keith@users.osdn.me>
13-# Copyright (C) 2019, Keith Marshall
13+# Copyright (C) 2019, 2022, Keith Marshall
1414 #
1515 #
1616 # This file is part of the Git-MQ program suite.
@@ -50,6 +50,16 @@
5050 eval ${mq_commit_date+'mq_collect mq_commit_opts "$mq_commit_date"'}
5151 eval ${mq_commit_user+'mq_collect mq_commit_opts "$mq_commit_user"'}
5252
53+# Conversely, when performing a "git qfold", or a "git qrefresh", if
54+# the "mq_commit_date" has not be pre-assigned, we must set the date
55+# for the amended commit, to reflect the current date and time.
56+#
57+ case "$mq_facility" in "git qfold" | "git qrefresh")
58+ test -n "$mq_commit_date" ||
59+ mq_collect mq_commit_opts "--date='`date +'%s %z'`'"
60+ ;;
61+ esac
62+
5363 # We are now ready to create, or amend, the commit, whence the patch
5464 # file itself will be generated; note that the handling of file name
5565 # arguments differs between "git qnew", in which case "mq_args" will