shari-sushi / 0015Laboratory

My SandBox, PoC
0 stars 0 forks source link

COMMIT_EDITMSGの動作確認 #3

Closed shari-sushi closed 10 months ago

shari-sushi commented 10 months ago

「多量の変更をしたが、コミットするブランチを分けたい」ようなときにCOMMIT_EDITMSGの手入力での書き換えは有効か検証する。

shari-sushi commented 10 months ago

COMMIT_EDITMSGについて、自動生成された①を手入力で②に書き換えても、コミット、プッシュの結果になんら影響は見られなかった。 ①

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch issue/1-run_npm_run_build_ERR
# Changes to be committed:
# modified:      test0015Go/internal/utility/data.go
# modified:      test0015Go/internal/utility/database.go

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch issue/1-run_npm_run_build_ERR
# Changes to be committed:
# modified:      test0015Go/internal/utility/data.go
#
# Changes not staged for commit:
# modified:      test0015Go/internal/utility/database.go
shari-sushi commented 10 months ago

結果、無効であった。

別の可能性としてVSCodeの「ソース管理」機能にて、 「ステージされている変更」上のdata.goの「―」を押下したところ、 「変更」に移動した。(同様に「+」を押下すると「ステージされている変更」に戻った。)も試してみたが効果無かった。

結論、 そのようなケースでは.gitignoreに一時的に書き込むような方法しかない?