Skip to contentSkip to conversation

docker: Prefix src copy dir with "."

PATCH In review Fam Zheng 2 participants 3 messages Aug 8, 2016

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

PATCH v2 1/1 docker: Prefix src copy dir with "."

So they don't show up in "ls" command, and don't clutter editor's quick open plugins easily (such as CtrlP of VIM).

---

Update .gitignore entry too.

---
 .gitignore                    | 2 +-
 tests/docker/Makefile.include | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
.gitignore +1 -1
index 88ec249..5963994 100644
@@ -113,5 +113,5 @@
 cscope.*
 tags
 TAGS
-docker-src.*
+.docker-src.*
 *~
tests/docker/Makefile.include +1 -1
index 4f4707d..de57320 100644
@@ -28,7 +28,7 @@ make-archive-maybe = $(if $(wildcard $1/*), \
 		"  ARCHIVE $(notdir $2)"))
 
 CUR_TIME := $(shell date +%Y-%m-%d-%H.%M.%S.$$$$)
-DOCKER_SRC_COPY := docker-src.$(CUR_TIME)
+DOCKER_SRC_COPY := .docker-src.$(CUR_TIME)
 
 $(DOCKER_SRC_COPY):
 	@mkdir $@
Signature · 1 line
2.7.4
#1 lore raw
Quoted 2 lines · Fam Zheng

So they don't show up in "ls" command, and don't clutter editor's quick open plugins easily (such as CtrlP of VIM).

It is also harder to remove it this way though. Perhaps move it into tests/docker?

Paolo

Quoted 35 lines

---

Update .gitignore entry too.

---
 .gitignore                    | 2 +-
 tests/docker/Makefile.include | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
.gitignore +1 -1
index 88ec249..5963994 100644
@@ -113,5 +113,5 @@
 cscope.*
 tags
 TAGS
-docker-src.*
+.docker-src.*
 *~
tests/docker/Makefile.include +1 -1
index 4f4707d..de57320 100644
@@ -28,7 +28,7 @@ make-archive-maybe = $(if $(wildcard $1/*), \
 		"  ARCHIVE $(notdir $2)"))
 
 CUR_TIME := $(shell date +%Y-%m-%d-%H.%M.%S.$$$$)
-DOCKER_SRC_COPY := docker-src.$(CUR_TIME)
+DOCKER_SRC_COPY := .docker-src.$(CUR_TIME)
 
 $(DOCKER_SRC_COPY):
 	@mkdir $@
author
#2 lore raw
Quoted 8 lines · Paolo Bonzini
Quoted 2 lines · Fam Zheng

So they don't show up in "ls" command, and don't clutter editor's quick open plugins easily (such as CtrlP of VIM).

It is also harder to remove it this way though. Perhaps move it into tests/docker?

That isn't ideal. CtrlP does non-contingous sequence matching on the path name I type in, and the docker directory has many characters that distracts the matching a lot.

Any other options you can think of?

Fam