Show peeled onion from upload-pack and server-info.

This updates git-ls-remote to show SHA1 names of objects that are
referred by tags, in the "ref^{}" notation.

This would make git-findtags (without -t flag) almost trivial.

    git-peek-remote . |
    sed -ne "s:^$target	"'refs/tags/\(.*\)^{}$:\1:p'

Also Pasky could do:

    git-ls-remote --tags $remote |
    sed -ne 's:\(	refs/tags/.*\)^{}$:\1:p'

to find out what object each of the remote tags refers to, and
if he has one locally, run "git-fetch $remote tag $tagname" to
automatically catch up with the upstream tags.

Signed-off-by: Junio C Hamano <junkio@cox.net>
3 files changed
tree: e28da137e465b5caa12ba6b05aae9fe4dc4b46c8
  1. arm/
  2. compat/
  3. debian/
  4. Documentation/
  5. mozilla-sha1/
  6. ppc/
  7. t/
  8. templates/
  9. .gitignore
  10. apply.c
  11. blob.c
  12. blob.h
  13. cache.h
  14. cat-file.c
  15. check-ref-format.c
  16. checkout-index.c
  17. clone-pack.c
  18. cmd-rename.sh
  19. commit-tree.c
  20. commit.c
  21. commit.h
  22. config.c
  23. connect.c
  24. convert-objects.c
  25. COPYING
  26. count-delta.c
  27. count-delta.h
  28. csum-file.c
  29. csum-file.h
  30. ctype.c
  31. daemon.c
  32. date.c
  33. delta.h
  34. diff-delta.c
  35. diff-files.c
  36. diff-index.c
  37. diff-stages.c
  38. diff-tree.c
  39. diff.c
  40. diff.h
  41. diffcore-break.c
  42. diffcore-order.c
  43. diffcore-pathspec.c
  44. diffcore-pickaxe.c
  45. diffcore-rename.c
  46. diffcore.h
  47. entry.c
  48. environment.c
  49. epoch.c
  50. epoch.h
  51. fetch-pack.c
  52. fetch.c
  53. fetch.h
  54. fsck-objects.c
  55. get-tar-commit-id.c
  56. git-add.sh
  57. git-am.sh
  58. git-applymbox.sh
  59. git-applypatch.sh
  60. git-archimport.perl
  61. git-bisect.sh
  62. git-branch.sh
  63. git-checkout.sh
  64. git-cherry.sh
  65. git-clone.sh
  66. git-commit.sh
  67. git-core.spec.in
  68. git-count-objects.sh
  69. git-cvsimport.perl
  70. git-diff.sh
  71. git-fetch.sh
  72. git-findtags.perl
  73. git-fmt-merge-msg.perl
  74. git-format-patch.sh
  75. git-grep.sh
  76. git-log.sh
  77. git-ls-remote.sh
  78. git-merge-octopus.sh
  79. git-merge-one-file.sh
  80. git-merge-recursive.py
  81. git-merge-resolve.sh
  82. git-merge-stupid.sh
  83. git-merge.sh
  84. git-octopus.sh
  85. git-parse-remote.sh
  86. git-prune.sh
  87. git-pull.sh
  88. git-push.sh
  89. git-rebase.sh
  90. git-relink.perl
  91. git-rename.perl
  92. git-repack.sh
  93. git-request-pull.sh
  94. git-reset.sh
  95. git-resolve.sh
  96. git-revert.sh
  97. git-send-email.perl
  98. git-sh-setup.sh
  99. git-shortlog.perl
  100. git-status.sh
  101. git-tag.sh
  102. git-verify-tag.sh
  103. git-whatchanged.sh
  104. git.sh
  105. gitk
  106. gitMergeCommon.py
  107. hash-object.c
  108. http-fetch.c
  109. ident.c
  110. index-pack.c
  111. index.c
  112. init-db.c
  113. INSTALL
  114. local-fetch.c
  115. ls-files.c
  116. ls-tree.c
  117. mailinfo.c
  118. mailsplit.c
  119. Makefile
  120. merge-base.c
  121. merge-index.c
  122. mktag.c
  123. object.c
  124. object.h
  125. pack-check.c
  126. pack-objects.c
  127. pack.h
  128. patch-delta.c
  129. patch-id.c
  130. path.c
  131. peek-remote.c
  132. pkt-line.c
  133. pkt-line.h
  134. prune-packed.c
  135. quote.c
  136. quote.h
  137. read-cache.c
  138. read-tree.c
  139. README
  140. receive-pack.c
  141. refs.c
  142. refs.h
  143. rev-list.c
  144. rev-parse.c
  145. rsh.c
  146. rsh.h
  147. run-command.c
  148. run-command.h
  149. send-pack.c
  150. server-info.c
  151. setup.c
  152. sha1_file.c
  153. sha1_name.c
  154. show-branch.c
  155. show-index.c
  156. ssh-fetch.c
  157. ssh-pull.c
  158. ssh-push.c
  159. ssh-upload.c
  160. strbuf.c
  161. strbuf.h
  162. stripspace.c
  163. symbolic-ref.c
  164. tag.c
  165. tag.h
  166. tar-tree.c
  167. test-date.c
  168. test-delta.c
  169. tree.c
  170. tree.h
  171. unpack-file.c
  172. unpack-objects.c
  173. update-index.c
  174. update-ref.c
  175. update-server-info.c
  176. upload-pack.c
  177. usage.c
  178. var.c
  179. verify-pack.c
  180. write-tree.c