Skip to content

A small emacs extension for working with the git index from within diff-mode

License

Notifications You must be signed in to change notification settings

alanfalloon/diff-git.el

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This package adds commands for working with the Git index from within
`diff-mode'.

When splitting up commits and other fine juggling of staged and
unstaged changes, `diff-mode' offers a number of advantages:
specifically `diff-reverse-direction' and `diff-split-hunk' are
extremely useful for teasing apart changes.

The major commands are: `diff-git-hunk-stage' which takes the hunk
under the point and stages it in the index; `diff-git-diff-staged'
which makes a new diff buffer showing the staged changes in the file;
and `diff-git-diff-unstaged' which shows the unstaged changes.

The staged and unstaged diff buffers are refreshed when
`diff-git-hunk-stage' is run, or when the file they are tracking is
saved.

This extension was written and tested on GNU Emacs 23.0.91.1. To use
this extension you will require magit 0.7 and vc-git (included with
emacs)

About

A small emacs extension for working with the git index from within diff-mode

Resources

License

Stars

Watchers

Forks

Packages

No packages published