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

Re: Hey - A Conceptual Simplication....

From
Dmitry Potapov <dpotapov@gmail.com>
Date
Nov 20, 2009, 01:48 UTC
Message-ID
<20091120014843.GB22556@dpotapov.dyndns.org>
In-Reply-To
<009401ca68bc$7e4b12b0$7ae13810$@com>
On Wed, Nov 18, 2009 at 09:03:31PM -0500, George Dennie wrote:
Show 5 quoted lines
> 
> For example, the functional notion of the repository seems well
> defined: a growing web of immutable commits each created as either an
> isolated commit or more typically an update and/or merger of one or
> more pre-existing commits. 

In Git, commits are not immutable. One thing that many Git users do is git-rebase, which in essense is re-writing or re-ordering exising commits. So, you can change history in Git, but you should never change the published history. (Of course, that leads to the question what is considered as published history. For instance, commits merged on the proposed-updates branch are usually not considered to be "published", so they can be re-written or discarded later).

So, the correct way to use Git is to find the right balance between the need to clean up after mistakes (using git-rebase) and not doing too much, so you will not lose important history or create problems for other peoples.

> 
> The notion of a shapeless commit is curious. Intuitively, I consider a
> commit as capturing the state of my work at a transactional boundary
> (i.e. a successful unit test...or even lunch break).

No, it is not what Git commits were intended for. In Git, a commit is a change intended to achieve some goal. Basically, you send a patch to maintainer, and you should explain what this patch does and why it is useful... If your explanation is "I have a lunch break now", it is very bad explanation, thus a bad patch.

Dmitry
Previous: Jakub NarebskiNext: david@lang.hm
Message 15 of 25 in “Hey - A Conceptual Simplication....”
  1. George DennieNov 18, 2009
  2. Jonathan del StrotherNov 18, 2009
  3. Jan KrügerNov 18, 2009
  4. George DennieNov 18, 2009
  5. Jakub NarebskiNov 18, 2009
  6. Jason SewallNov 18, 2009
  7. George DennieNov 19, 2009
  8. Björn SteinbrinkNov 19, 2009
  9. George DennieNov 19, 2009
  10. Junio C HamanoNov 19, 2009
  11. Jakub NarebskiNov 20, 2009
  12. Junio C HamanoNov 20, 2009
  13. Dmitry PotapovNov 20, 2009
  14. Jakub NarebskiNov 19, 2009
  15. Dmitry PotapovNov 20, 2009
  16. david@lang.hmNov 20, 2009
  17. Dmitry PotapovNov 20, 2009
  18. Björn SteinbrinkNov 20, 2009
  19. Dmitry PotapovNov 20, 2009
  20. Dmitry PotapovNov 20, 2009
  21. Junio C HamanoNov 20, 2009
  22. Dmitry PotapovNov 20, 2009
  23. Thomas RastNov 18, 2009
  24. Jason SewallNov 18, 2009
  25. Linus TorvaldsNov 18, 2009

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.