* [PATCH] add git-browse-help to the ignore list
@ 2007-12-11 9:21 Pierre Habouzit
2007-12-11 9:24 ` [PATCH] Add a makefile rule to regenerate .gitignore from the make variables Pierre Habouzit
0 siblings, 1 reply; 2+ messages in thread
From: Pierre Habouzit @ 2007-12-11 9:21 UTC (permalink / raw)
To: Git ML
[-- Attachment #1: Type: text/plain, Size: 518 bytes --]
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
---
Here is a missing new command in the ignore list. See next patch for
an alternative solution to the problem ;)
.gitignore | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore
index bac60ce..5eaba41 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,6 +12,7 @@ git-archive
git-bisect
git-blame
git-branch
+git-browse-help
git-bundle
git-cat-file
git-check-attr
--
1.5.3.7.2224.gb695b
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] Add a makefile rule to regenerate .gitignore from the make variables.
2007-12-11 9:21 [PATCH] add git-browse-help to the ignore list Pierre Habouzit
@ 2007-12-11 9:24 ` Pierre Habouzit
0 siblings, 0 replies; 2+ messages in thread
From: Pierre Habouzit @ 2007-12-11 9:24 UTC (permalink / raw)
To: Git ML
[-- Attachment #1: Type: text/plain, Size: 3432 bytes --]
This allow that the commands that moved away, were renamed, or the new
commands gets added in a simple fashion.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
---
This is an alternative patch that aims at solving the problem at once,
running "make ignore" or "make .gitignore" will regenerate the list of
commands and test programs and add it in a sorted way at the end.
.gitignore | 60 +++++++++++++++++++++++++++---------------------------------
Makefile | 7 +++++++
2 files changed, 34 insertions(+), 33 deletions(-)
diff --git a/.gitignore b/.gitignore
index 5eaba41..52cb353 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,28 @@
GIT-CFLAGS
GIT-GUI-VARS
GIT-VERSION-FILE
+git-core-*/?*
+gitk-wish
+common-cmds.h
+*.tar.gz
+*.dsc
+*.deb
+git.spec
+*.exe
+*.[aos]
+*.py[co]
+config.mak
+autom4te.cache
+config.cache
+config.log
+config.status
+config.mak.autogen
+config.mak.append
+configure
+tags
+TAGS
+cscope*
+### Automatic ignore list
git
git-add
git-add--interactive
@@ -31,18 +53,17 @@ git-cvsexportcommit
git-cvsimport
git-cvsserver
git-daemon
+git-describe
git-diff
git-diff-files
git-diff-index
git-diff-tree
-git-describe
git-fast-export
git-fast-import
git-fetch
git-fetch--tool
git-fetch-pack
git-filter-branch
-git-findtags
git-fmt-merge-msg
git-for-each-ref
git-format-patch
@@ -59,7 +80,6 @@ git-index-pack
git-init
git-init-db
git-instaweb
-git-local-fetch
git-log
git-lost-found
git-ls-files
@@ -69,9 +89,8 @@ git-mailinfo
git-mailsplit
git-merge
git-merge-base
-git-merge-index
git-merge-file
-git-merge-tree
+git-merge-index
git-merge-octopus
git-merge-one-file
git-merge-ours
@@ -79,13 +98,14 @@ git-merge-recursive
git-merge-resolve
git-merge-stupid
git-merge-subtree
+git-merge-tree
git-mergetool
git-mktag
git-mktree
-git-name-rev
git-mv
-git-pack-redundant
+git-name-rev
git-pack-objects
+git-pack-redundant
git-pack-refs
git-parse-remote
git-patch-id
@@ -120,10 +140,6 @@ git-show
git-show-branch
git-show-index
git-show-ref
-git-ssh-fetch
-git-ssh-pull
-git-ssh-push
-git-ssh-upload
git-stash
git-status
git-stripspace
@@ -144,34 +160,12 @@ git-verify-pack
git-verify-tag
git-whatchanged
git-write-tree
-git-core-*/?*
-gitk-wish
gitweb/gitweb.cgi
test-absolute-path
test-chmtime
test-date
test-delta
-test-dump-cache-tree
test-genrandom
test-match-trees
test-parse-options
test-sha1
-common-cmds.h
-*.tar.gz
-*.dsc
-*.deb
-git.spec
-*.exe
-*.[aos]
-*.py[co]
-config.mak
-autom4te.cache
-config.cache
-config.log
-config.status
-config.mak.autogen
-config.mak.append
-configure
-tags
-TAGS
-cscope*
diff --git a/Makefile b/Makefile
index ccc9f3c..50c8b9a 100644
--- a/Makefile
+++ b/Makefile
@@ -946,6 +946,13 @@ $(XDIFF_OBJS): xdiff/xinclude.h xdiff/xmacros.h xdiff/xdiff.h xdiff/xtypes.h \
$(XDIFF_LIB): $(XDIFF_OBJS)
$(QUIET_AR)$(RM) $@ && $(AR) rcs $@ $(XDIFF_OBJS)
+.gitignore: Makefile
+ $(QUIET_GEN)$(RM) $@+ && ( \
+ sed -e '/^### Automatic ignore list$$/q' $@ \
+ $(foreach p,$(sort $(OTHER_PROGRAMS) $(ALL_PROGRAMS) $(BUILT_INS)),&& echo $p) \
+ $(foreach t,$(sort $(TEST_PROGRAMS)),&& echo $t) \
+ ) > $@+ && mv $@+ $@
+ignore: .gitignore
doc:
$(MAKE) -C Documentation all
--
1.5.3.7.2224.gb695b
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-12-11 9:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-11 9:21 [PATCH] add git-browse-help to the ignore list Pierre Habouzit
2007-12-11 9:24 ` [PATCH] Add a makefile rule to regenerate .gitignore from the make variables Pierre Habouzit
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).