Questions tagged [magit]

is an Emacs extension for the Git version control system.

Filter by
Sorted by
Tagged with
2
votes
1answer
118 views

Font-lock for strings messes up non-code buffers

In Magit buffers, or helm-swoop, an unclosed double quote enables the string highlighting for the rest of the buffer (until another quote is found). This is how it looks like: Because of that, I also ...
2
votes
1answer
241 views

How to log file following all renames?

I upgraded to recently released Magit 2. There is a command magit-log-buffer-file. However, it logs file without --follow option, which makes it quite pointless for me (in our source code nearly ...
2
votes
1answer
235 views

“C:/c/user/…my-folder/ isn't an existing directory” error

I use Emacs 24.5.1 with Spacemacs and added Msys2 to the exec-path to use git.exe When I run 'Magit-status' I get the following error: C:/c/user/...my-folder/ isn't an existing directory. I can see ...
2
votes
2answers
302 views

Pushing with P P does not work for me

Reading the Magit user manual, there is an entry on pushing the current branch to its upstream branch, by pressing P P. This is not working for me, as I get P isn't bound to any action on the second P ...
1
vote
2answers
172 views

How to customize a magit popup, conditionally on the state of the repository?

In response to a question about adding an action to magit's push menu, I've written an Emacs Lisp command to implement the extension, and I've learned that I can extend the push menu by calling magit-...
1
vote
1answer
217 views

Enable smerge-mode for already opened file

smerge-mode doesn't always get enabled for git merge conflicts. I think this happens when I visit a file using emacsclient which is already opened in a buffer. Something (maybe magit?) is causing the ...
1
vote
2answers
171 views

why does magit say I haven't pushed the commit?

I'm trying to figure out why magit is saying this. I created and checked out a branch array-of-tables from master, made a commit, then pushed it (using push current and choosing to push to origin/...
1
vote
2answers
179 views

Yasnippets won't expand in git-commit-mode?

I have written a snippet for git-commit-mode. However when I'm writing a commit message (from Magit), the snippet won't trigger. Does anyone know how to fix this? I have yasnippet version 20160924....
1
vote
1answer
72 views

What's the meaning of rebase in magit status buffer?

In magit status buffer, it said: Head: feature/event Rebase: origin/feature/event123 Tag: 8000.102 (9) But if run git status, I don't see such Rebase information if simply run the ...
1
vote
1answer
49 views

Can magit stage a hunk / selected lines in 'diff-mode'?

Is it possible to stage the current hunk or selected lines of the hunk in diff-mode? For example, when in diff-mode, what command can I run to stage the current hunk?
1
vote
1answer
221 views

How to revert buffer after magit-checkout?

I use smart-mode-line package and I noticed when I change/checkout branches in command line, or in Magit, this is not reflected in the Smart Mode Line. I still see the name of the old branch, while I ...
0
votes
1answer
63 views

Is it possible to force `markdown-mode` during git commit?

I was using following answer: https://emacs.stackexchange.com/a/57535/18414 to set markdown on the .git/COMMIT_EDITMSG file. (add-to-list 'auto-mode-alist '("/\\.git/COMMIT_EDITMSG\\'...
0
votes
1answer
236 views

Can't commit on Windows using magit

I keep getting the following error 1 c:/Program Files (x86)/Git/bin/git.exe … "commit" "--amend" *ERROR*: Wrong type argument: stringp, nilerror: There was a problem with the editor '"c:/...
-1
votes
1answer
383 views

Magit fails to create local repository

This is what I got when I select a directory (whether it had a git repository) and choose "yes" when magit asks if I want to create one: Debugger entered--Lisp error: (wrong-type-argument stringp nil)...

1
2