git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* New git commit tool
@ 2006-09-04 11:52 Paul Mackerras
  2006-09-04 12:26 ` Jakub Narebski
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Paul Mackerras @ 2006-09-04 11:52 UTC (permalink / raw)
  To: git; +Cc: torvalds

I have been working on a tool for creating commits, and I think it is
now far enough along to be useful.  I added it to the 'new' branch of
my gitk.git repository (git://git.kernel.org/pub/scm/gitk/gitk.git) or
you can fetch it from http://ozlabs.org/~paulus/gitool.

The way it works is that one "checks in" a set of changes, types a
message into the lower pane, then clicks the "Commit" button to create
the commit.  When the commit has been created, the tool exits.

The changes that have been checked in are recorded in the index.
Gitool can also undo checkins, restoring the index state for a file to
the original state (i.e. the state in the current HEAD commit).

At the top, gitool displays two lists of filenames, with an icon
beside each name.  The left-hand list shows modified files (whether
checked in or not), and the right-hand list shows new files (those
just added, and untracked files).  Clicking on the icon changes the
state of a file, alternating between not-checked-in and checked-in.

Clicking on the filename displays something useful; for a modified
file, it shows the changes made; for a new or untracked file, it shows
the contents of the file.

Files can also be partly checked in, for example, if changes were made
and checked in, and then further changes were made.  Clicking on such
a file will show a 3-way diff (HEAD vs. checked-in state vs. working
file), provided Junio applies my patch to diff-lib.c. :)

Gitool doesn't handle merge commits yet, but that is something I want
to implement soon, hopefully with the ability to resolve merge
conflicts in the tool.  There are quite a few other features I want to
implement as well (key bindings, font size selection, persistent
geometry).

Comments and suggestions are welcome.  Patches are even more
welcome. :)

Paul.

-- 
VGER BF report: U 0.977306

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-09-05 16:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-04 11:52 New git commit tool Paul Mackerras
2006-09-04 12:26 ` Jakub Narebski
2006-09-04 17:10 ` Linus Torvalds
2006-09-04 21:20   ` Paul Mackerras
2006-09-04 21:40     ` Linus Torvalds
2006-09-05  8:45     ` Karl Hasselström
2006-09-04 19:57 ` Jonas Fonseca
2006-09-04 21:51   ` Paul Mackerras
2006-09-05 16:46     ` Jonas Fonseca

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).