Re: [BUG] - "git commit --amend" commits, when exiting the editor with no changes written

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eugene Sajine <euguess@xxxxxxxxx> writes:

> Tell me you're not serious, please;) I'm working with computers for
> more than 20 years and I do understand how editors are opening files.
> If you are serious though...:

I'm damned serious. If you've been working for 20 years with
computers, you probably understand what "no change need to be saved"
mean.

> The solution should be as Avery proposed - to monitor file
> modification timestamp as well as the content.

Try it. I do mean "try it". I don't think anyone will be able to
explain you better than it has already been done, but ... it doesn't
work.

So, again, stop arguing, try it, and see by yourself. I promise public
apologies if you prove me wrong with an actually working piece of
code.

> Timestamp should be remembered by git when editor is fired up and then
> checked when you're exiting the editor.

Which doesn't work reliable, as you would have noticed by reading my
message.

(and yes, I'm tired and angry after a long day of work ;-) ).

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]