Skip to content

Comments

Update Emacs integration and interaction with modern git.#12

Closed
slippycheeze wants to merge 6 commits intobartman:nextfrom
slippycheeze:next
Closed

Update Emacs integration and interaction with modern git.#12
slippycheeze wants to merge 6 commits intobartman:nextfrom
slippycheeze:next

Conversation

@slippycheeze
Copy link

This updates the code, based on next, to work with Emacs 23.1, and to work with a modern git through invoking git wip rather than git-wip directly.

As a bonus, it has a minor fix to error reporting for git wip log.

bartman and others added 6 commits April 7, 2012 09:36
`(vc-backend)` is the symbol `GIT` in some versions of Emacs.  Rather than
just comparing it with the fixed case string, case-fold it for comparison.

This makes the detection of the back-end much more robust - extracting the
logic to determine if the buffer is managed by git, then using that in all the
hooks.

Signed-off-by: Daniel Pittman <daniel@rimspace.net>
In modern git installations, most of the `git-whatever` commands are hidden
well away from the user - and so are the support components like the shell
setup libraries and so forth.

That means that invoking `git-wip` directly fails, but `git wip` will do
exactly the right thing.  Since the cost of invoking it that way is low, we
might as well...

Signed-off-by: Daniel Pittman <daniel@rimspace.net>
A copy-and-paste error would output the wrong branch when there are no commits
found.
@purcell
Copy link
Contributor

purcell commented Mar 31, 2013

+1 for these fixes!

@tarsius
Copy link
Contributor

tarsius commented Apr 20, 2013

@daniel-pittman If you like git-wip you might also like https://github.com/magit/magit/blob/master/magit-wip.el :-)

@aculich
Copy link

aculich commented Apr 20, 2013

+1000 for magit-wip :)

@bartman
Copy link
Owner

bartman commented Dec 12, 2021

just cleaning up.

@bartman bartman closed this Dec 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants