Skip to contentSkip to conversation

gitignore: differentiate between program names and directories

PATCH New John Kacur 1 participant 1 message Feb 14, 2012

lore
Share & tools
lore

John Kacur

author
#0 lore raw

PATCH 1/1 gitignore: differentiate between program names and directories

Quoted 2 lines

From 4f42b10461f3807017b8f06962adbff1b3d73e24 Mon Sep 17

00:00:00 2001
From: John Kacur <[email protected]>
Date: Tue, 14 Feb 2012 01:47:25 +0100
Subject: [PATCH] gitignore: differentiate between program names and
directories

Many rt-test programs including cyclictest have directories with the same name as the generated binaries. Tell .gitignore to only ignore the program names and not the directories by using a slash prefix.

---
 .gitignore |   31 ++++++++++++++++++-------------
 1 files changed, 18 insertions(+), 13 deletions(-)
.gitignore +18 -13
index 44b3d4d..047925c 100644
@@ -10,19 +10,24 @@ releases
 BUILD
 RPMS
 SRPMS
-classic_pi
-pi_stress
-cyclictest
-signaltest
+
+#
+# Top-level programs
+#
+/classic_pi
+/pi_stress
+/cyclictest
+/signaltest
+/hwlatdetect
+/rt-migrate-test
+/ptsematest
+/sendme
+/sigwaittest
+/svsematest
+/pip_stress
+/hackbench
+/pmqtest
+
 rt-tests.spec
-hwlatdetect
 tags
 TAGS
-rt-migrate-test
-ptsematest
-sendme
-sigwaittest
-svsematest
-pip_stress
-hackbench
-pmqtest
Signature · 1 line
1.7.7.6