Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

history 功能没了? #88

Closed
RunningCoderLee opened this issue Oct 12, 2020 · 5 comments
Closed

history 功能没了? #88

RunningCoderLee opened this issue Oct 12, 2020 · 5 comments
Assignees
Labels

Comments

@RunningCoderLee
Copy link

以前使用的时候以后有 history 的功能,即执行 gacp 的时候如果被中断了,下次执行的时候会默认选择上次执行时的选项和填充的文字内容,但是不知道从某个版本之后好像这个功能没有了,请问这个是什么原因呢?

@vivaxy
Copy link
Owner

vivaxy commented Oct 12, 2020

history 功能目前设计为:
提交信息输入完成后,在 git add, commit, push 过程中发生异常,重新提交时可以使用上次输入过的信息。
一旦成功执行完成 gacp 的所有流程,则会清空 history。

解决的问题如:
git hook 中报错会中断提交行为,修改代码后,可以再次尝试提交。

请问您对 history 功能的需求是什么样子的?是否可以提供一个场景示例?

@RunningCoderLee
Copy link
Author

RunningCoderLee commented Oct 12, 2020

需求和你描述的是一样的,现在的问题是我在提交 git commit 时因为 git hookeslint 校验没通过中断后,重新执行 gacp 时并不会复原上一次执行时做出的选择和填充的标题内容

@litong534
Copy link

遇到相同的问题,本地测试@2.9.0以及更早的版本是有history的,查看了一下change log,猜测因为最新的external-editor引入后所致?

@vivaxy
Copy link
Owner

vivaxy commented Oct 12, 2020

我尝试重现下,感谢指出问题

@vivaxy vivaxy self-assigned this Oct 13, 2020
@vivaxy vivaxy added the bug label Oct 13, 2020
@vivaxy
Copy link
Owner

vivaxy commented Oct 13, 2020

@RunningCoderLee @litong534 感谢提醒,2.10.1 版本已经修复。

如果平时使用 VSCode 的,推荐尝试下 VSCode Conventional Commits.

@vivaxy vivaxy closed this as completed Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants