gpt4 book ai didi

bash - 一组提交的 Git 日志

转载 作者:太空狗 更新时间:2023-10-29 14:35:43 25 4
gpt4 key购买 nike

我正在尝试为我的一组提交获取 git log --name-only。我可以使用 bash 脚本循环提交,但我想知道是否有更好的方法。

例如:如果数据库中有数千个提交,我如何才能获得随机选择的 3 个提交的 git 日志信息?

任何见解表示赞赏。

谢谢

最佳答案

好的,IIUC 你想要git show --name-only:

git show --name-only <COMMIT_SHA1> <ANOTHER_COMMIT_SHA1>

例如,在git://w1.fi/hostap.git 仓库中:

$  git show --name-only 1778f1e9a4c37aa2bad51f4027139625cf39783a 0fa669bcaeb8861cbf24544f18d22a8f39821f1a
commit 1778f1e9a4c37aa2bad51f4027139625cf39783a
Author: Jouni Malinen <jouni@codeaurora.org>
Date: Fri Mar 23 17:57:14 2018 +0200

SAE: Fix PTK derivation to use KDF-SHA256

The previous implementation ended up defaulting to using PRF-SHA1 for
deriving PTK from PMK when SAE was used. This is not correct since the
SAE AKM is defined to be using SHA-256 -based KDF instead. Fix that.

Note: This change is not backwards compatible. Both the AP and station
side implementations will need to be updated at the same time to
maintain functionality.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>

src/common/defs.h
src/common/wpa_common.c

commit 0fa669bcaeb8861cbf24544f18d22a8f39821f1a
Author: Jouni Malinen <jouni@codeaurora.org>
Date: Wed Mar 21 22:34:09 2018 +0200

Fix a resource leak on hostapd maclist parsing error path

The open file needs to be closed in error case. The conversion to using
a new helper function (hostapd_add_acl_maclist) somehow managed to
remove the neede fclose(f) call. Bring it back to fix this.

Fixes: 3988046de538 ("hostapd: Dynamic MAC ACL management over control interface")
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>

hostapd/config_file.c

关于bash - 一组提交的 Git 日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49457137/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com