fast-export: trivial cleanup
authorFelipe Contreras <felipe.contreras@gmail.com>
Wed, 28 Nov 2012 22:11:08 +0000 (23:11 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 29 Nov 2012 20:18:45 +0000 (12:18 -0800)
Setting 'commit' to 'commit' is a no-op. It might have been there to
avoid a compiler warning, but if so, it was the compiler to blame, and
it's certainly not there any more.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fast-export.c

index 9b70ec1fcffacadccedcd6533ca44e68fefd9cf4..191936c179bcf9c6657453a7415feb9e1f8d5b30 100644 (file)
@@ -483,7 +483,7 @@ static void get_tags_and_duplicates(struct object_array *pending,
        for (i = 0; i < pending->nr; i++) {
                struct object_array_entry *e = pending->objects + i;
                unsigned char sha1[20];
-               struct commit *commit = commit;
+               struct commit *commit;
                char *full_name;
 
                if (dwim_ref(e->name, strlen(e->name), sha1, &full_name) != 1)