1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-10-30 05:47:53 +01:00
Find a file
Shawn O. Pearce 4539eacd6d git-gui: Make initial commits work properly.
Apparently I never really tested the logic for making or amending an
initial commit, so although most of the code was here in git-gui it
didn't quite work as it was intended to.

So this is all just bug fixes to make initial commits correctly
generate the list of files going into the initial commit, or to
show a newly added file's diff, and to amend an initial commit.

Because we really want to diff the index against a tree-ish and
there is no such tree-ish on an initial commit we create an empty
tree through git-mktree and diff against that.  This unfortunately
creates a dangling tree, which may confuse a new user who uses
git-gui to make a new commit and then immediately afterwards runs
git fsck-objects to see if their object database is corrupt or not.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
2006-11-18 02:50:58 -05:00
git-citool git-gui: Finished commit implementation. 2006-11-07 03:05:17 -05:00
git-gui git-gui: Make initial commits work properly. 2006-11-18 02:50:58 -05:00
Makefile git-gui: Created makefile to install the program. 2006-11-17 23:56:14 -05:00
TODO git-gui: Updated TODO list now that geometry is stored. 2006-11-12 00:16:00 -05:00