git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/2] Add test for git clean -e.

From
Jared Hance <jaredhance@gmail.com>
Date
Jul 20, 2010, 16:30 UTC
Message-ID
<4cc65cc57f6eea298401a2de0aa5fb378703fb38.1279643093.git.jaredhance@gmail.com>
In-Reply-To
<cover.1279643093.git.jaredhance@gmail.com>
Signed-off-by: Jared Hance <jaredhance@gmail.com>
---
 t/t7300-clean.sh |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh
index 7d8ed68..c6df26d 100755
--- a/t/t7300-clean.sh
+++ b/t/t7300-clean.sh
@@ -438,4 +438,20 @@ test_expect_success 'force removal of nested git work tree' '
 	! test -d bar
 '
 
+test_expect_success 'git clean -e' '
+	rm -fr repo &&
+	mkdir repo &&
+	(
+		cd repo &&
+		git init &&
+		touch 1 2 3 known &&
+		git add known &&
+		git clean -f -e "1 2" &&
+		test -e 1 &&
+		test -e 2 &&
+		! (test -e 3) &&
+		test -e known
+	)
+'
+
 test_done
-- 
1.7.1.1
Previous: Jared HanceNext: Aaron Crane
Message 10 of 16 in “Add --exclude to git-clean.j”
  1. Add --exclude to git-clean.jJared Hance, Jul 19, 2010
  2. Jonathan NiederJul 19, 2010
  3. Jared HanceJul 19, 2010
  4. Add --exclude to git-clean.Jared Hance, Jul 19, 2010
  5. Junio C HamanoJul 19, 2010
  6. Jared HanceJul 19, 2010
  7. Add --exclude to git-clean.Jared Hance, Jul 19, 2010
  8. 0/2 Add -e/--exclude to git clean.Jared Hance, Jul 20, 2010
  9. 1/2 Add --exclude to git-clean.Jared Hance, Jul 20, 2010
  10. 2/2 Add test for git clean -e.Jared Hance, Jul 20, 2010
  11. Aaron CraneJul 20, 2010
  12. Jared HanceJul 20, 2010
  13. Junio C HamanoJul 20, 2010
  14. Junio C HamanoJul 20, 2010
  15. Jared HanceJul 20, 2010
  16. Louis StrousSep 23, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.