From: Mojca M. <moj...@gm...> - 2018-03-22 03:38:32
|
On 22 March 2018 at 04:18, sfeam wrote: > On Thursday, 22 March 2018 04:04:26 Mojca Miklavec wrote: >> On 22 March 2018 at 03:39, sfeam via gnuplot-beta wrote: >> > >> > I wish there was a way to edit commit messages afterwards. >> > That is the thing I dislike the about about git so far. >> > You cannot go back and fix typos or errors in the commit >> > messages. >> >> You can. >> >> "git commit --amend" for the latest message >> "git rebase -i HEAD~<N>" for <N> latest commits >> >> You can arbitrarily use these before pushing the changes to the >> server. Once they are on the server you can still do this (with force >> pushing) > > I know you can do it locally, but it does not work once it > has been pushed to SourceForge. The --amend and --force > modifiers are rejected on the SourceForge end. On github it's configurable whether you allow it, maybe even on per-branch basis. It might be the same on SF. >> , but you may cause inconvenience to other users who might >> have synced the sources in the meantime, so it's not recommended. > > I can understand how it might cause an inconvenience if the > change was made retrospectively to the source file itself, > but I fail to see a problem from correcting an error in the > commit message. Git has integrity checking built in. Modifying commit message changes commit shasum and people who synced end up with incompatible copies. Modifying commit message is equally bad for git as changing files and equally bad as stealth updates of released tarballs (package manager fetches gcc sources and performs some checksums, but then upstream decides to change the tarball in some minor way without changing its filename, checksums are no longer valid and packages no longer work). For SVN it's easier because everything lives on the server, there are no integrity checks and commit numbers don't change. > If I get annoyed enough I may think harder about moving the main > repository off SourceForge. The remote interface is very clunky. I've been suggesting that for ages :) Mojca |