News for hackers. Stuff that matters.
Re:Reinventing the Git Interface (2014) by donatj on Thursday March 30, 2017 @05:09PM (#13998882)
> Everything is a commit. Treat working copy and staging area as commits, allow regular commit operations to be applied to them

That… silly. No. That doesn't make any sense at all.

Re:Reinventing the Git Interface (2014) by Ajedi32 on Thursday March 30, 2017 @05:12PM (#13998909)
Why not?

A commit is essentially just a snapshot of the state of files in the repository, so IMO it makes perfect sense to treat the staging area and working copy the same as commits.

Re:Reinventing the Git Interface (2014) by LyndsySimon on Thursday March 30, 2017 @05:24PM (#13999004)
For one, I try to keep my commits as "atomic units of functionality", not just state snapshots. I often have three or four commits' worth of changes in my working copy, and sort through them carefully when one is complete to create a commit of only that small piece of functionality.
Re:Reinventing the Git Interface (2014) by infogulch on Thursday March 30, 2017 @05:35PM (#13999082)
Right... now your working copy is just a commit named WIP that sits at the top of the branch and is updated (--amend style) in real time. Wait! let me finish:

So now you decide you want to move a part of the delta from WIP into a real commit. So split it and move some of the delta from WIP into the split and rename the split. It's the same workflow!

Re:Reinventing the Git Interface (2014) by JadeNB on Thursday March 30, 2017 @06:00PM (#13999273)
But surely "your workflow can be re-implemented in this different interface" is merely an argument that the different interface has not lost power, rather than necessarily that it is as good as (or even better than) the existing interface?
Re:Reinventing the Git Interface (2014) by infogulch on Thursday March 30, 2017 @08:50PM (#14000379)
I'd prefer to phrase it as "this different interface also supports your workflow".

Whether the different interface is better or not is completely independent from when it was developed in relation to an existing interface. For example, I find debit cards a much preferable interface to the "pay for things from your bank account" workflow over writing checks, and checks were developed much earlier. :)

An interface is only as good as the power it gives you. Recall that power is work/time, so you can increase power by increasing work or decreasing time [1]. It's better if it's easier or faster to use and you can overcome the transition/initial learning costs. I'd guess that the vast majority of typical users of git have to pull up the git man pages (or stackoverflow) to do most of the actions shown in this article, hinting that such an interface may both save time and increase work (users often just not do stuff that they have to research to accomplish).

[1]: Ok, I might be stretching the physics analogy a bit. :P

Re:Reinventing the Git Interface (2014) by JadeNB on Thursday March 30, 2017 @05:59PM (#13999258)
> For one, I try to keep my commits as "atomic units of functionality", not just state snapshots. I often have three or four commits' worth of changes in my working copy, and sort through them carefully when one is complete to create a commit of only that small piece of functionality.

Given that this is not a universal working model, your explication of your working model, and why it makes the proposed interface not appropriate for you, seems like a much more useful comment than "That… silly. No. That doesn't make any sense at all."

Re:Reinventing the Git Interface (2014) by milesrout on Thursday March 30, 2017 @05:14PM (#13998921)
Commits are just snapshots. I can't fathom how many times I've wanted to have separate working copies for separate branches. And no, I really do not want to have ~/code/webapp1 ~/code/webapp2 ~/code/webapp3
Re:Reinventing the Git Interface (2014) by glandium on Thursday March 30, 2017 @05:41PM (#13999126)
git worktree?
Re:Reinventing the Git Interface (2014) by ygra on Thursday March 30, 2017 @05:11PM (#13998893)
To you, mayhaps. You'd be surprised in how many different ways people use tools.