Thread (4 messages) flat view 4 messages, 3 authors, 2016-06-15

Re: Problem creating commits/trees with commit-tree/mktree

From: Gavin Beatty <hidden>
Date: 2016-06-15 22:48:01

On Mon, Jan 11, 2010 at 19:38, Avery Pennarun [off-list ref] wrote:
When I'm doing similar things, I often prefer just using a temporary
git index file to keep track of my intermediate trees.  Just set
GIT_INDEX_FILE to point at a temporary file; then you can use
git-read-tree to read in an old tree, and git-update-index
(particularly with the --stdin flag) to update it.  Then you can use
git-write-tree to convert the temporary index into a real tree object.
Your suggestion works well.  git update-index --info-only -z
--index-info takes ls-tree -r -z style format and pre-existing
objects: just as I wanted.

Thanks, git-fast-import was too much for the quite simple git-related
code I need.

-- 
Gavin Beatty

SEMPER UBI SUB UBI
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help