OSDN Git Service

diff: correct handling of labels. -10 bytes
authorMatheus Izvekov <mizvekov@gmail.com>
Mon, 18 Jan 2010 22:40:23 +0000 (20:40 -0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 20 Jan 2010 01:45:45 +0000 (02:45 +0100)
commit4de4cb6b9ba294b47ffbaa8646f7ebe4cb8db3c9
treec51eee50d4d057a0df77c6e649ffd8fe6f80a438
parentb32aa0c274ee7fec286b5355c6c9a9d084e657f8
diff: correct handling of labels. -10 bytes

>>From 05eeb173f0431b4fbed7684d7a9cea42f747f63e Mon Sep 17 00:00:00 2001
From: Matheus Izvekov <mizvekov@gmail.com>
Date: Mon, 18 Jan 2010 20:33:55 -0200
Subject: [PATCH] diff: correct handling of labels

This fixes an issue where diff would apply labels to files in the
inverse order, when using -L or --label.
This fixes it in order to be compatible with gnu diff.
It also makes it not an error to specify more than one label.
The behavior for such cases is that they override the label for the new
file.

Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
editors/diff.c