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

[PATCH jk/remove-deprecated] stop installing git-tar-tree link

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Dec 2, 2013, 23:37 UTC
Message-ID
<20131202233710.GB29959@google.com>
In-Reply-To
<d29327f6eb6e999ef31c3130ad2bab712a5d280b.1384098226.git.john@keeping.me.uk>

When the built-in "git tar-tree" command (a thin wrapper around "git archive") was removed in 925ceccf (tar-tree: remove deprecated command, 2013-11-10), the build continued to install a non-functioning git-tar-tree command in gitexecdir by mistake:

	$ PATH=$(git --exec-path):$PATH
	$ git-tar-tree -h
	fatal: cannot handle tar-tree internally

The list of links in gitexecdir is populated from BUILTIN_OBJS, which includes builtin/tar-tree.o to implement "git get-tar-commit-id". Rename the get-tar-commit-id source file to builtin/get-tar-commit-id.c to reflect its purpose and fix 'make install'.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
---
Hi,
John Keeping wrote:
>  builtin/tar-tree.c                     | 62 -------------------------
Here's a quick fixup on top.  Thoughts?

Thanks, Jonathan

 Makefile                                    | 3 +--
 builtin/{tar-tree.c => get-tar-commit-id.c} | 0
 2 files changed, 1 insertion(+), 2 deletions(-)
 rename builtin/{tar-tree.c => get-tar-commit-id.c} (100%)
diff --git a/Makefile b/Makefile
index 504931f..37beb73 100644
--- a/Makefile
+++ b/Makefile
@@ -586,7 +586,6 @@ BUILT_INS += git-cherry$X
 BUILT_INS += git-cherry-pick$X
 BUILT_INS += git-format-patch$X
 BUILT_INS += git-fsck-objects$X
-BUILT_INS += git-get-tar-commit-id$X
 BUILT_INS += git-init$X
 BUILT_INS += git-merge-subtree$X
 BUILT_INS += git-show$X
@@ -929,6 +928,7 @@ BUILTIN_OBJS += builtin/fmt-merge-msg.o
 BUILTIN_OBJS += builtin/for-each-ref.o
 BUILTIN_OBJS += builtin/fsck.o
 BUILTIN_OBJS += builtin/gc.o
+BUILTIN_OBJS += builtin/get-tar-commit-id.o
 BUILTIN_OBJS += builtin/grep.o
 BUILTIN_OBJS += builtin/hash-object.o
 BUILTIN_OBJS += builtin/help.o
@@ -980,7 +980,6 @@ BUILTIN_OBJS += builtin/show-ref.o
 BUILTIN_OBJS += builtin/stripspace.o
 BUILTIN_OBJS += builtin/symbolic-ref.o
 BUILTIN_OBJS += builtin/tag.o
-BUILTIN_OBJS += builtin/tar-tree.o
 BUILTIN_OBJS += builtin/unpack-file.o
 BUILTIN_OBJS += builtin/unpack-objects.o
 BUILTIN_OBJS += builtin/update-index.o
diff --git a/builtin/tar-tree.c b/builtin/get-tar-commit-id.c
similarity index 100%
rename from builtin/tar-tree.c
rename to builtin/get-tar-commit-id.c
-- 
1.8.4.1
Previous: John KeepingNext: John Keeping
Message 4 of 12 in “Remove deprecated commands”
  1. 0/4 Remove deprecated commandsJohn Keeping, Nov 10, 2013
  2. 1/4 repo-config: remove deprecated alias for "git config"John Keeping, Nov 10, 2013
  3. 2/4 tar-tree: remove deprecated commandJohn Keeping, Nov 10, 2013
  4. stop installing git-tar-tree linkJonathan Nieder, Dec 2, 2013
  5. John KeepingDec 3, 2013
  6. Michael J GruberDec 4, 2013
  7. 3/4 lost-found: remove deprecated commandJohn Keeping, Nov 10, 2013
  8. 4/4 peek-remote: remove deprecated alias of ls-remoteJohn Keeping, Nov 10, 2013
  9. Junio C HamanoNov 11, 2013
  10. John KeepingNov 11, 2013
  11. Jonathan NiederNov 11, 2013
  12. John KeepingNov 11, 2013

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.