• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
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

修订版1da2daa3d8c9ab7c121ff73fedb9592f7736db4e (tree)
时间2022-02-20 00:33:48
作者Keith Marshall <keith@user...>
CommiterKeith Marshall

Log Message

Ensure "git qfold" runs with the correct CWD.

* git-qfold.shar: Immediately following...
(git-mq-setup): ...this, insert a "cd" command, ensuring that...
($GIT_ROOT): ...this is made the working directory; without this,
folded patches are not correctly applied, thus losing their content,
if "git qfold" is invoked from any other working directory.

更改概述

差异

--- a/git-qfold.shar
+++ b/git-qfold.shar
@@ -66,6 +66,12 @@ ETX
6666 . ./git-mq-setup.shar
6767
6868 cat <<\ETX
69+# Successful folding of patches requires the working directory to be
70+# set to the root directory of the git working tree, while processing
71+# the "git qfold" command operations.
72+#
73+cd "$GIT_ROOT"
74+
6975 # If this command proceeds to successful completion, it will perform
7076 # a "git commit ...", for which the "--amend" option must be specified,
7177 # so initialize the "mq_commit_opts" shell variable accordingly.