Thread (16 messages) flat view 16 messages, 3 authors, 2016-06-15

Re: [Qgit RFC] commit --amend

From: Marco Costalba <hidden>
Date: 2016-06-15 22:43:19

On 7/5/07, Jan Hudec [off-list ref] wrote:
Therefore I'll either have to always ask git via run("git-rev-parse HEAD",
head), add HEAD into the map, or store HEAD somewhere in the Git object.
Which do you think makes most sense?
Asking git when you need it and keep HEAD value only for the minimum
time required to execute the commit command.

- HEAD is very 'volatile'

- commit is _not_ performance critical.

- commit, being a write operation, is instead bugs/misbehaviour
critical (a big point to use an high level "git-commit" BTW)

- asking git with getRefSha("HEAD", ANY_REF, true)  is very quick and
in any case much quicker then the whole commit dance.

- someone can always change the repo behind you, qgit is not the only
interface to git ;-) does exist also the command line.


Marco
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help