Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
docs: Introduce headings on commit discipline.
Karl Stolley38c8c374d548
diff --git a/docs/contributing/commit-discipline.md b/docs/contributing/commit-discipline.mdindex 6bb667ce1de..5b43647990c 100644--- a/docs/contributing/commit-discipline.md+++ b/docs/contributing/commit-discipline.md@@ -7,7 +7,7 @@ makes the commit history a much more useful resource for developerstrying to understand why the code works the way it does, which alsohelps a lot in preventing bugs.-Commits must be coherent:+## Each commit must be coherent- It should pass tests (so test updates needed by a change should bein the same commit as the original change, not a separate "fix the@@ -22,7 +22,7 @@ Commits must be coherent:- TODO comments should be in the commit that introduces the issue orthe functionality with further work required.-Commits should generally be minimal:+## Commits should generally be minimal- Significant refactorings should be done in a separate commit fromfunctional changes.@@ -34,7 +34,7 @@ Commits should generally be minimal:of somewhat dissimilar things that you did, you probably should havejust done multiple commits.-When not to be overly minimal:+### When not to be overly minimal- For completely new features, you don't necessarily need to split outnew commits for each little subfeature of the new feature. E.g., if@@ -46,7 +46,7 @@ When not to be overly minimal:- Don't bother to split backend commits from frontend commits, eventhough the backend can often be coherent on its own.-Other considerations:+## Write a clean commit history- Overly fine commits are easy to squash later, but not vice versa.So err toward small commits, and the code reviewer can advise on