Mercurial Queues Emulation for Git
修訂 | 1da2daa3d8c9ab7c121ff73fedb9592f7736db4e (tree) |
---|---|
時間 | 2022-02-20 00:33:48 |
作者 | Keith Marshall <keith@user...> |
Commiter | Keith Marshall |
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.
@@ -66,6 +66,12 @@ ETX | ||
66 | 66 | . ./git-mq-setup.shar |
67 | 67 | |
68 | 68 | 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 | + | |
69 | 75 | # If this command proceeds to successful completion, it will perform |
70 | 76 | # a "git commit ...", for which the "--amend" option must be specified, |
71 | 77 | # so initialize the "mq_commit_opts" shell variable accordingly. |