diff mbox

[v2] docker: Prefix src copy dir with "."

Message ID 1470638884-22528-1-git-send-email-famz@redhat.com
State New
Headers show

Commit Message

Fam Zheng Aug. 8, 2016, 6:48 a.m. UTC
So they don't show up in "ls" command, and don't clutter editor's quick
open plugins easily (such as CtrlP of VIM).

Signed-off-by: Fam Zheng <famz@redhat.com>

---

Update .gitignore entry too.
---
 .gitignore                    | 2 +-
 tests/docker/Makefile.include | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Paolo Bonzini Aug. 8, 2016, 9:03 a.m. UTC | #1
On 08/08/2016 08:48, Fam Zheng wrote:
> 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

> Signed-off-by: Fam Zheng <famz@redhat.com>
> 
> ---
> 
> Update .gitignore entry too.
> ---
>  .gitignore                    | 2 +-
>  tests/docker/Makefile.include | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/.gitignore b/.gitignore
> index 88ec249..5963994 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -113,5 +113,5 @@
>  cscope.*
>  tags
>  TAGS
> -docker-src.*
> +.docker-src.*
>  *~
> diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include
> index 4f4707d..de57320 100644
> --- a/tests/docker/Makefile.include
> +++ b/tests/docker/Makefile.include
> @@ -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 $@
>
Fam Zheng Aug. 8, 2016, 9:09 a.m. UTC | #2
On Mon, 08/08 11:03, Paolo Bonzini wrote:
> 
> 
> On 08/08/2016 08:48, Fam Zheng wrote:
> > 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
diff mbox

Patch

diff --git a/.gitignore b/.gitignore
index 88ec249..5963994 100644
--- a/.gitignore
+++ b/.gitignore
@@ -113,5 +113,5 @@ 
 cscope.*
 tags
 TAGS
-docker-src.*
+.docker-src.*
 *~
diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include
index 4f4707d..de57320 100644
--- a/tests/docker/Makefile.include
+++ b/tests/docker/Makefile.include
@@ -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 $@