{"thread":{"id":"10541","subject":"git-commit broken with GIT_INDEX_FILE","startedAt":"2007-10-31T15:02:32Z","lastAt":"2007-10-31T15:02:32Z","messageCount":1,"participants":["Tim Janik"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"57708","messageId":"Pine.LNX.4.62.0710311549380.21251@master.birnet.private","threadId":"10541","inReplyTo":null,"subject":"git-commit broken with GIT_INDEX_FILE","fromName":"Tim Janik","fromEmail":"timj@gtk.org","sentAt":"2007-10-31T15:02:32Z","receivedAt":"2007-10-31T15:02:32Z","isPatch":false,"sender":{"key":"timj@gtk.org","avatar":null},"body":"hey All.\n\ni'm maintaining my own git porcelainen, and as part of that had to\n(re-)implement my own commit command:\n   http://blogs.gnome.org/timj/2007/10/13/13102007-yummy-yummy-porcelain-version-08/\n\ni've read through git-commit and cg-commit, and would really like to avoid\nreimplementing the hook and utf8 encoding handling. thus, my tool calls\ngit-commit once it has created an index file with all the files that\nneed comitting.\nideally, it'd construct a temporary index, e.g. $GIT_DIR/next-index$$ and\nthen invoke:\n   GIT_INDEX_FILE=$GIT_DIR/next-index$$ git-commit -F commitmsg.txt\nthis is not working as expected however.\n\nwhen GIT_INDEX_FILE=tmpindex is specified for git-commit-1.5.3.4, it will\nconstruct a commit message for tmpindex, but it'll still use the standard\nindex file $GIT_DIR/index for git-write-tree.\n\n(so my current implementation saves and restores the standard index file\naround committs.)\n\nfor consistent commit messages, the index file used for commit message\nconstruction should be the same index used for git-write-tree.\nideally however, GIT_INDEX_FILE=tmpindex git-commit would work correctly\nin using tmpindex for git-write-tree as well.\n\n---\nciaoTJ\n"}]}