commit bcbc22724ddb271a0f40cdfec5dcb49f2e52b8da from: Stefan Sperling date: Wed May 20 17:40:57 2020 UTC document how to use commit messages prepared in a file; patch by Scott Bennett commit - 0d6c6ee302022b4b2746cd5a85df1f34f8891b9c commit + bcbc22724ddb271a0f40cdfec5dcb49f2e52b8da blob - 170dd8d78a6e6113a9d9057dfc445245e87596bd blob + 2622e5a3f57c01d5c7c55e3ee70f1b92e04329bf --- got/got.1 +++ got/got.1 @@ -1972,6 +1972,19 @@ with a pre-defined log message. .Pp .Dl $ got commit -m 'unify the buffer cache' .Pp +Alternatively, create a new commit from local changes in a work tree +directory with a log message that has been prepared in the file +.Pa /tmp/msg . +If +.Xr vi 1 +is set as the +.Ev EDITOR , +.Pa /tmp/msg +can be read into the buffer for review: +.Pp +.Dl $ got commit +.Dl :r /tmp/msg +.Pp Update any work tree checked out from the .Dq unified-buffer-cache branch to the latest commit on this branch: