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

Re: Git feature request: mark a commit as minor

From
Felipe Micaroni Lalli <micaroni@walltime.info>
Date
Oct 3, 2015, 19:52 UTC
Message-ID
<5610320D.30806@walltime.info>
In-Reply-To
<20151003181222.GA2024@paksenarrion.iveqy.com>

You are right. It could be useful to fix old commits (already pushed) but it could encourage bad practices. Minor changes should be avoided, it is an exception, not a rule.

Thank you Fredrik.
On 03/10/2015 15:12, Fredrik Gustafsson wrote:
Show 27 quoted lines
> On Fri, Oct 02, 2015 at 06:38:46PM -0300, Felipe Micaroni Lalli 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.
> 
> I can see your problem and implement your suggest is a solution that
> would work. However since this is a common problem, git already has a
> solution, that is the interactive rebase.
> 
> You can read a discussion about when to use merge and rebase here:
> http://www.mail-archive.com/dri-devel@lists.sourceforge.net/msg39091.html
> 
> This work method make the "minor" commits to go away. There shouldn't be
> any minor, or "fixup" commits in your history (of course there's
> exception).
> 
> Minor things should be caught in your code review process and then
> fixed, rebased and the merged again.
> 
> Or do I miss a usecase here?
> 
Previous: Fredrik Gustafsson
Message 7 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.