Commit graph

761 commits

Author SHA1 Message Date
Ramkumar Ramachandra
aa76cd957f log-edit-mode: Make "C-x C-s" a noop
Make "C-x C-s" a no-op in magit-log-edit-mode for convinience.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
2010-11-02 17:25:15 +00:00
Phil Jackson
ff2994c721 Docs, remove extraneous whitespace. 2010-11-02 17:24:47 +00:00
Ramkumar Ramachandra
d021ee342b Allow prefix to amend while committing
Amending a commit quite a common operation: Extend magit-log-edit to
accept prefix (C-u) to toggle amending.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
2010-11-02 17:09:21 +00:00
Phil Jackson
e461c39b92 Remove the merging functions from branch view for the time being (needs refactoring). 2010-11-02 16:50:57 +00:00
Phil Jackson
e5ae16c1d7 Fix syntax error. 2010-11-02 16:46:34 +00:00
Phil Jackson
59f577e020 Make sure display-log range command is optional. 2010-11-01 14:39:20 +00:00
Phil Jackson
80ee094c9c Reflog commands a bit more like the log commands now. 2010-11-01 14:28:52 +00:00
Phil Jackson
96f9a1e405 New ranged log command. 2010-11-01 14:25:20 +00:00
Phil Jackson
daa347bde9 New ranged long log command. 2010-11-01 13:49:23 +00:00
Phil Jackson
bdccbb7c74 Merge remote branch 'refs/remotes/lindi/issue-20' 2010-10-27 10:53:31 +01:00
Phil Jackson
7f8f7de527 Stash now takes account of its key-group arguments. 2010-10-16 21:43:48 +01:00
Aaron Culich
62d3e95805 This bugfix gets rid of "File ... no longer exists!" errors in magit-revert-buffers
by checking to make sure that the file exists and is readable before trying to revert.
2010-10-12 16:46:19 +01:00
Phil Jackson
b73d254816 Merge remote branch 'refs/remotes/avar/rebase-bugfixes' 2010-10-10 12:46:58 +01:00
Phil Jackson
66fae667ed More authors changed my 'job title'. 2010-10-09 14:25:31 +01:00
Aaron Culich
c95efe6aa2 Use condition-case to report bugs instead of just ignoring errors. 2010-10-09 05:05:18 -07:00
Ævar Arnfjörð Bjarmason
26107dda6f magit-refresh-status: align messages for rebase message
"Rebasing:" was the longest message, but the status bar wasn't aligned
before, now this:

    Local:  (detached) ~/g/git/
    Head:   c6b2a51 gettextize: git-clone "Cloning into" message
    Rebasing: onto master (26 of 159); Press "R" to Abort, Skip, or Continue

Is aligned like this:

    Local:    (detached) ~/g/git/
    Head:     c6b2a51 gettextize: git-clone "Cloning into" message
    Rebasing: onto master (26 of 159); Press "R" to Abort, Skip, or Continue

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
2010-09-29 11:31:26 +00:00
Ævar Arnfjörð Bjarmason
19a8f263a0 rebase: add hint letters to "[A]bort, [S]kip, or [C]ontinue?" message
Now it'll ask you:

    Rebase in progress. [A]bort, [S]kip, or [C]ontinue?

The message didn't indicate how you made the selction before.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
2010-09-29 11:31:26 +00:00
Ævar Arnfjörð Bjarmason
aac348011e rebase: tell the user he can press R to proceed
"R" may actually not be "R" here, but I where-is-internal hurt my
brain, so I didn't use it.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
2010-09-29 11:31:26 +00:00
Ævar Arnfjörð Bjarmason
c7b54cb065 rebase: add the "onto" information back & reformat
The Head section already tells us what commit we're on. Now this looks
like this:

    Local:  (detached) ~/g/git/
    Head:   c6b2a51 gettextize: git-clone "Cloning into" message
    Rebasing: onto master (26 of 159)

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
2010-09-29 11:31:26 +00:00
Ævar Arnfjörð Bjarmason
961d80dbf0 magit-rebase-info: solve the 'The "R" rebase method needs a small fix' issue
Fix the bug in magit-rebase-info that I introduced in 81bb2ba. Here's
the description of the bug from a message of mine to the mailing list:

    I sent an incomplete fix for the "R" rebase method recently:

       http://github.com/philjackson/magit/pull/59

    But Phil pulled it in as-is:

       81bb2ba2d3

    Anyway, it needs a small fixup, this:

       (length (magit-file-lines ".git/rebase-merge/git-rebase-todo.backup"))

    Will be way off, because it'll count the (length) of lines like:

       ("pick cb925f0 check message..." "pick 2f811b6 take done length"
    "pick 29332e6 use backup" "" "# Rebase 19e2dd7..29332e6 onto 19e2dd7"
    "#" ...

    What it should do instead so we can get the correct count is to only
    count up until the "" (uninclusive) so the above example would return
    3.

    I couldn't find an idiomatic way of doing this in elisp, I could with
    the (loop) macro, but that'd require cl.el.

As it turns out magit already needs cl.el, so I can just use (loop) to
fix this.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
2010-09-29 11:31:26 +00:00
Phil Jackson
8152961d36 Added the ability to push tags. 2010-09-28 17:00:56 +01:00
Phil Jackson
8d94579f8b Make builtin completing read default again.
After a couple of requests for this.
2010-09-25 16:53:26 +01:00
Hannu Koivisto
814ba6c715 Fix magit-completing-read prompting.
Prompts are now fed to magit-completing-read in a form that makes them look
ok if magit-completing-read-function is set directly to completing-read or
a compatible function instead of a Magit-specific wrapper.
2010-09-25 11:33:40 +01:00
Hannu Koivisto
54745433e2 Smarter prompting for magit-rebase-step start
Use the tracked branch as the default, if available.
Don't offer the current branch as a new base.
2010-09-24 09:36:12 +01:00
Hannu Koivisto
50156dedc1 magit-read-rev: add mechanism to mask uninteresting refs 2010-09-24 09:36:12 +01:00
Hannu Koivisto
adce2cbfc3 Smarter prompting for magit-checkout
Don't offer the current branch as a choice.
2010-09-24 09:36:12 +01:00
Hannu Koivisto
c6585d534d iswitchb-based completing-read alternative for rev-reading etc. 2010-09-24 09:36:12 +01:00
Phil Jackson
2123b72ec5 Added fetch-other and removed useless fetch option. 2010-09-22 14:55:14 +01:00
Phil Jackson
34025078c5 Remove extraneous whitespace. 2010-09-21 10:24:51 +01:00
Aaron Culich
36ace412b6 Make magit-run* look in the magit-process-buffer for a useful error
string when reporting an error, and fall back on the less helpful "Git
failed" message only if no error message could be found in the buffer.
2010-09-21 10:24:51 +01:00
Aaron Culich
17753d31fd added myself as a contributor. 2010-09-21 10:24:51 +01:00
Aaron Culich
d8d831c187 since there is no else clause, we can turn the if statement into a
when and get rid of the progn.
2010-09-21 10:24:51 +01:00
Aaron Culich
2a2a533b09 remove accidental duplicate line 2010-09-21 10:24:51 +01:00
Aaron Culich
feeb8cd46c like checkout, create-branch should also query if the user wants to
save buffers and also update the modeline when the branch has been
switched.
2010-09-21 10:24:51 +01:00
Aaron Culich
05c3e6fd10 Checkout should ask to save some buffers if magit-save-some-buffers is
non-nil. And since this functionality is now used in three places I
also created a helper function to do it.
2010-09-21 10:24:51 +01:00
Aaron Culich
4478bbb11b make checkout update modeline 2010-09-21 10:24:51 +01:00
Yann Hodique
73dbc9d47d use intern' in place of make-symbol'
The important difference between the 2 is that we actually *need* the value definition, since this is where we store the actual hooks
2010-09-18 11:58:53 +02:00
Ævar Arnfjörð Bjarmason
81bb2ba2d3 magit-rebase-info: remove dead code and add >= 1.6 support
Magit's "R" feature didn't work with a Git newer than 1.6. It was only
checking for files which were removed from git.git in v1.6.0-rc0~56
[1].

1. http://github.com/git/git/commit/v1.6.0-rc0~56

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
2010-09-16 22:40:47 +01:00
Phil Jackson
08ebe7dfcd Put back the automatic merge function for branch menu.
Closes #57.
2010-09-16 22:33:29 +01:00
Phil Jackson
6541af799d Revert the log-edit bits and bobs. 2010-09-16 22:24:19 +01:00
Timo Juhani Lindfors
98848b0509 magit: [PATCH] Improve documentation of minor modes. Keymaps are now included.
Hi,

this patch improves documentation of minor modes. Notably it includes
the keymaps so that C-h m shows them depending on the mode.

From 17ac227df3428af49f4400ef27b5a05ca030bdee Mon Sep 17 00:00:00 2001
From: Timo Juhani Lindfors <timo.lindfors@iki.fi>
Date: Thu, 2 Sep 2010 20:46:27 +0300
Subject: [PATCH] Improve documentation of minor modes. Keymaps are now included.
2010-09-15 13:53:56 +01:00
Timo Juhani Lindfors
1a06c8a862 Merge branch 'master' into issue-20 2010-09-14 22:36:03 +03:00
Timo Juhani Lindfors
d8c938a812 Don't use a pty with git processes that take input from magit since
that would set the terminal option icrnl which would modify the
input. In particular \r would get converted to \n (issue #20).
2010-09-14 22:33:02 +03:00
Phil Jackson
41aa0e46dd Remove calls of non-existent functions. 2010-09-11 15:25:27 +01:00
Phil Jackson
84b1ee5bbe Merge branch 'origin-key-groups'
Conflicts:
	Makefile.am
	README.md
	bin/mk_rel.bash
	configure.ac
	magit-svn.el
	magit.el
2010-09-11 14:49:47 +01:00
Phil Jackson
bd520d5540 Annotated tagging back. 2010-09-11 14:22:10 +01:00
Phil Jackson
2adf25833e Set the correct keybinding for log-edit-mode when we know the action. 2010-09-11 12:16:48 +01:00
Phil Jackson
527cc7af10 Generate interactive popup functions (thanks Rémi). 2010-09-07 21:11:03 +01:00
Phil Jackson
0282351936 Added commands for running stuff. 2010-09-07 19:35:16 +01:00
Phil Jackson
536dde9f35 Put actual key bindings back in magit.el. 2010-09-05 15:42:53 +01:00