简体   繁体   English

git log-创建新的提交消息/描述时,描述字段在哪里?

[英]git log - where does the description field belong when creating a new commit message/description

We are using Bitbucket at work, here is the UI for creating a new commit message/description when doing a merge via pull request: 我们在工作中使用Bitbucket,这是用于通过Pull请求进行合并时创建新提交消息/描述的UI:

在此处输入图片说明

as you can see in the screenshot, the question is: where does the data from the description text box go? 正如您在屏幕截图中所看到的,问题是:描述文本框中的数据会流向何处?

In other words, I am using this command to capture select data from the git log: 换句话说,我正在使用此命令从git日志中捕获选择数据:

git log -30 --pretty=format:'{"commit":"%H","sanitized_subject_line":"%f","commit_notes":"%N","author":"%aN","date":"%aD"}'

Is there a way to capture the data from the description textbox in the UI? 有没有办法从用户界面的描述文本框中捕获数据? What is that textbox for? 该文本框的作用是什么?

I believe this Title and Description, is specific to the Pull Request itself. 我相信此标题和说明特定于拉取请求本身。 It has nothing to do with a commit so it won't appear in the git log. 它与提交无关,因此不会出现在git日志中。

Looks like you add to the commit message after you click the merge button on the Bitbucket UI: 看起来您在单击 Bitbucket UI上的合并按钮后将其添加到提交消息中:

在此处输入图片说明

This should be the place in the UI where you can craft a specific git message that matches some pattern so that you can search for that pattern later with git log etc. 这应该是在UI中可以制作与某些模式匹配的特定git消息的位置,以便以后可以使用git log等搜索该模式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM