Eric Blake wrote:
> When doing a file rename, it is much more compact if you use 'git diff -M'
> or 'git format-patch -M'.  Not only that, but if you end up making slight
> changes during the rename to account for the new name, the git rename
> detection makes it much easier to see the 1% difference than the
> non-rename listing of 100% deletion/100% addition.

Thanks for teaching me. I learned about 'git format-patch' only this week.

Bruno

From cb36fa4b55a898d0dc1417c78d865593117f7dfc Mon Sep 17 00:00:00 2001
From: Bruno Haible <[EMAIL PROTECTED]>
Date: Sun, 25 May 2008 13:44:20 +0200
Subject: [PATCH] Rename acl.c to set-mode-acl.c.

---
 ChangeLog                     |    6 ++++++
 lib/{acl.c => set-mode-acl.c} |    2 +-
 modules/acl                   |    4 ++--
 3 files changed, 9 insertions(+), 3 deletions(-)
 rename lib/{acl.c => set-mode-acl.c} (99%)

diff --git a/ChangeLog b/ChangeLog
index 594035c..9b23415 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-05-25  Bruno Haible  <[EMAIL PROTECTED]>
+
+	* lib/set-mode-acl.c: Renamed from lib/acl.c.
+	* modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
+	(Makefile.am): Update lib_SOURCES.
+
 2008-05-24  Andreas Färber  <[EMAIL PROTECTED]>  (tiny change)
 
 	* lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
diff --git a/lib/acl.c b/lib/set-mode-acl.c
similarity index 99%
rename from lib/acl.c
rename to lib/set-mode-acl.c
index a164f0c..2aaa0e6 100644
--- a/lib/acl.c
+++ b/lib/set-mode-acl.c
@@ -1,4 +1,4 @@
-/* acl.c - access control lists
+/* set-mode-acl.c - set access control list equivalent to a mode
 
    Copyright (C) 2002-2003, 2005-2008 Free Software Foundation, Inc.
 
diff --git a/modules/acl b/modules/acl
index 9a7f277..8a004b5 100644
--- a/modules/acl
+++ b/modules/acl
@@ -3,9 +3,9 @@ Access control lists of files.  (Unportable.)
 
 Files:
 lib/acl.h
-lib/acl.c
 lib/acl-internal.h
 lib/acl_entries.c
+lib/set-mode-acl.c
 lib/copy-acl.c
 lib/file-has-acl.c
 m4/acl.m4
@@ -20,7 +20,7 @@ configure.ac:
 gl_FUNC_ACL
 
 Makefile.am:
-lib_SOURCES += acl.c copy-acl.c file-has-acl.c
+lib_SOURCES += set-mode-acl.c copy-acl.c file-has-acl.c
 
 Include:
 "acl.h"
-- 
1.5.4.1

Reply via email to