[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Automatically commenting changes
From: |
Richard Riley |
Subject: |
Re: Automatically commenting changes |
Date: |
Wed, 26 Jan 2011 14:57:26 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) |
Gary <help-gnu-emacs@garydjones.name> writes:
> Stefan Monnier wrote:
>
>>> An editor I used long long ago had the ability to tag lines you
>> changed
>>> with your name (or some other customisable character sequence). For
>>> example if I changed the line
>>> int i = 0;
>>> the editor would automatically generate a comment on the end:
>>> int i = 1; /*gary*/
>
>> I think the way to attack such a problem nowadays is to keep your code
>> in a version control system (VCS), which then keeps track of all that
>> info for you.
>
> I do. But before I commit, or rather in the process of commiting, when
> there is the original file I branched from to consider, plus my changes,
> possibly plus changes from others who have commited since I branched,
> things can get confusing.
>
> For example, if I see as a difference the above "int i = 1" instead of
> "0", I only know it is different to what it was - did I change it? Did
> someone else? If I did, does it really make sense, or was it just
> something I did in order to achieve some debugging purpose? If I can at
> least easily see that it is one of my changes, I have a chance of
> understanding why I did it.
>
git-blame
magit
Message not available