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

[PATCH 0/2] fast-import: tag any object by sha1

From
Dmitry Ivankov <divanorama@gmail.com>
Date
Aug 22, 2011, 12:10 UTC
Message-ID
<1314015019-6636-1-git-send-email-divanorama@gmail.com>

fast-export can export annotated tags that annotate any type of object. It specifies objects via mark references and fast-import accepts this.

fast-import also allows to specify objects via sha1, and to query sha1
for a object being imported. So it should allow to tag a pre-existing
or being-imported objects by their sha1. And it currently does not:
- for pre-existing it kind of assumes it is a OBJ_COMMIT, read_sha1_file()s
  and checks only for (size >= 46), weird
- for being-imported objects it calls read_sha1_file too and fails
Just make it produce expected tags in these cases. Add a test for this.
Dmitry Ivankov (2):
  fast-import: add tests for tagging blobs
  fast-import: allow to tag newly created objects
 fast-import.c          |   14 +++++-----
 t/t9300-fast-import.sh |   67 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+), 7 deletions(-)
-- 
1.7.3.4
Next: Dmitry Ivankov
Message 1 of 4 in “fast-import: tag any object by sha1”
  1. 0/2 fast-import: tag any object by sha1Dmitry Ivankov, Aug 22, 2011
  2. 1/2 fast-import: add tests for tagging blobsDmitry Ivankov, Aug 22, 2011
  3. 2/2 fast-import: allow to tag newly created objectsDmitry Ivankov, Aug 22, 2011
  4. Junio C HamanoAug 23, 2011

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.