News for hackers. Stuff that matters.
Re:Purposes, Concepts, Misfits, and a Redesign of Git by Mithaldu on Friday September 30, 2016 @07:16PM (#12615795)
It comes down to levels of "written in stone"-ness, for lack of better words. There's a hierarchy of how much thought and effort change requires at various levels, starting at requiring no additional thought, to requiring considerable thought, and maybe even coordination with others:

  - changes on hdd
  - changes in staging area
  - changes in commit
  - changes in commit that came before a recent commit
  - changes in pushed commit
I'm not entirely sure about the following, and i think it merits more thought, but here's my current state of mind about it:

Technically you could do the same as the staging area by forcing the user to create a new, empty, but named commit when they decide they're done with the last one, and have all the current staging-affecting commands affect the last commit instead.

However, for one, i think it may be easier to mess up and lose data unexpectedly when workign that way, and for the other, putting down a name for a commit when you're not even sure what it's gonna be may be an awkward way of working. Lastly, you'd also need to implement "empty" commits. I'm not sure how useful/easy that would be with git.

Re:Purposes, Concepts, Misfits, and a Redesign of Git by icebraining on Saturday October 01, 2016 @08:27AM (#12617578)
Empty commits already are supported (see --allow-empty). And you can rename that commit at will using --amend, so the first name could simply be a placeholder - like "staging" :)