Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Emacs integration and interaction with modern git. #12

Closed
wants to merge 6 commits into from
Closed

Update Emacs integration and interaction with modern git. #12

wants to merge 6 commits into from

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.

None yet

7 participants