git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git feature request: mark a commit as minor

From
MMMikael Magnusson <mikachu@gmail.com>
Date
Oct 3, 2015, 06:17 UTC
Message-ID
<CAHYJk3Qb89YhVJoOpBLYMoNJX5GvVHnJhf41Gdbtypcp+Yq96g@mail.gmail.com>
In-Reply-To
<CA+P7+xq8Ds3hYjv2x8S4v8+6F3G+ciGreiZxHxDfzzft520ChQ@mail.gmail.com>
On Sat, Oct 3, 2015 at 8:11 AM, Jacob Keller <jacob.keller@gmail.com> wrote:
Show 21 quoted lines
> On Fri, Oct 2, 2015 at 2:38 PM, Felipe Micaroni Lalli
> <micaroni@walltime.info> wrote:
>> A minor change (also called "cosmetic") usually is a typo fix, doc
>> improvement, a little code refactoring that don't change the behavior etc.
>>
>> In Wikipedia we can mark an edition as "minor".
>>
>> It would be nice to have an argument like "--minor" in git-commit to
>> mark the commit as minor. Also, filter in git-log (like --hide-minor) to
>> hide the minor changes. The git-log could be optimized to show minor
>> commits more discreetly.
>>
>>
>
> This should just be part of the commit message log, generally projects
> use something like TRIVIAL in the patch subject or similar. You could
> also standardize for your project(s) what would be considered a minor
> change. The issue is that not everyone considers these changes as
> "minor". You should be able to use a combination of the --grep option
> in log to search for all commits who don't contain that string in the
> right format.

Could also be a good use for notes, since you might want to add this markup after the fact.

-- 
Mikael Magnusson
Previous: Jacob KellerNext: Felipe Micaroni Lalli
Message 3 of 7 in “Git feature request: mark a commit as minor”
  1. Felipe Micaroni LalliOct 2, 2015
  2. Jacob KellerOct 3, 2015
  3. Mikael MagnussonOct 3, 2015
  4. Felipe Micaroni LalliOct 3, 2015
  5. Jacob KellerOct 4, 2015
  6. Fredrik GustafssonOct 3, 2015
  7. Felipe Micaroni LalliOct 3, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.