commit_artist icon indicating copy to clipboard operation
commit_artist copied to clipboard

Committerが改ざんされない

Open ghost opened this issue 3 years ago • 0 comments

環境
  • Git for Windows 2.39.2
CLI
PS C:\test> git init
Initialized empty Git repository in C:/test/.git/
PS C:\test> git add .
PS C:\test> git commit -m "first commit"
[master (root-commit) 820538c] first commit
 1 file changed, 1 insertion(+)
 create mode 100644 Untitled-1.py
PS C:\test> git log -1 --format=%H
820538ca1623d620358bb1b97072e82a8e572d7e
PS C:\test> commit_artist -p 0123456
102760448 hashes calculated...
Yay! Now your new hash of the latest commit is 820538ca1623d620358bb1b97072e82a8e572d7e.
PS C:\test> git cat-file -p 820538ca1623d620358bb1b97072e82a8e572d7e
tree 5f30a8d2abb621d507c4a118f7900d420e9d0c96
author NOKKY726 <[email protected]> 1676480614 +0900
committer NOKKY726 <[email protected]> 1676480614 +0900

first commit

計算はされているようですが、コミットハッシュが変更されずに返されます。

ghost avatar Feb 15 '23 17:02 ghost