Commit graph

722 commits

Author SHA1 Message Date
Nathan Weizenbaum
ed9cb1eafa Add an edit-log-mode toggle for allowing empty commits.
This is useful for creating commits that are just notes, with no contents.
2010-06-24 16:31:50 -07:00
Nathan Weizenbaum
40fca42d92 Abstract out a magit-log-edit-toggle-field function. 2010-06-24 16:20:03 -07:00
Nathan Weizenbaum
1efde9202c Filter out HEAD refs from magit-name-rev.
HEAD refs are nasty because they're highly contingent.
Branches, tags, and remotes all require some commit to be made
in order for the ref to point to a different rev,
but HEADs just need something else to be checked out.

Also, filtering out HEADs makes the name more portable.
This is useful for Magithub, where the name may be passed on to GitHub.
2010-06-24 15:56:54 -07:00
Nathan Weizenbaum
2ea8cb2595 Add a magit-rev-parse function. 2010-06-24 15:53:20 -07:00
Moritz Bunkus
043f4383de Remove "remotes/" prefix from remote branch names
git cannot find a branch named "remotes/repository/branch" with
most (all?) of its commands, e.g. "git branch -d -r ..." or "git
merge".
2010-06-20 17:32:34 +01:00
Moritz Bunkus
8bcbcb369e Set 'remote branch' text property in branch view
This only works with git versions that prefix remote branches with
"remotes/" in the output of "git branch -va". git 1.7 and 1.6.3 do,
git 1.5.6.5 does not.
2010-06-20 17:32:34 +01:00
Phil Jackson
110e9063a3 Merge remote branch 'refs/remotes/nex3/read-rev-history' 2010-06-17 22:11:54 +01:00
Alex Ott
449bebe757 get true name for directories, that specified by symlinks 2010-06-17 13:08:17 +02:00
Nathan Weizenbaum
8cc37dcb99 Fix ref ambiguity detection. 2010-06-17 01:57:28 -07:00
Nathan Weizenbaum
daa3ab8987 Remove tags/ and remotes/ in name-rev when that doesn't create ambiguity. 2010-06-17 00:10:35 -07:00
Nathan Weizenbaum
c337dcc07c Make magit-name-rev a little cleaner.
The main thing is using --no-undefined to eliminate an extra check.
2010-06-16 23:55:51 -07:00
Nathan Weizenbaum
8a37b3c4ab Add history for magit-read-rev. 2010-06-16 22:08:15 -07:00
Nathan Weizenbaum
5017a85447 Allow magit-guess-branch to guess commits as well. 2010-06-16 22:08:06 -07:00
Nathan Weizenbaum
c2516ed37e Have magit-push use magit-get-remote. 2010-06-16 22:07:38 -07:00
Nathan Weizenbaum
db32004209 Have magit-get-current-remote default to "origin", like Git does. 2010-06-16 22:07:25 -07:00
Nathan Weizenbaum
7ef0b9e9cb Make magit-update-remote respect a named remote above SVN. 2010-06-16 22:06:50 -07:00
Nathan Weizenbaum
f846afe850 Add an option to use "remote/name" style refs rather than "name (remote)". 2010-06-16 22:05:45 -07:00
Nathan Weizenbaum
25b4bf7e6e Make magit-ignore-file work even if .gitignore doesn't exist. 2010-06-16 22:03:41 -07:00
Nathan Weizenbaum
f0c05ea93d Don't add info to the edit log when a commit is successfully applied.
Previously, if a commit was successfully applied and committed,
its information was still added to the edit log. This wasn't useful.
Now the information is only added if the commit wasn't committed (e.g. with a)
or if it was committed (with A) but the commit failed.
2010-06-16 22:03:26 -07:00
Nathan Weizenbaum
6e0de30947 Make sure magit-log-edit-set-fields works properly when there are no headers.
Before, if there were no headers but there was a header line,
an extra header line was added.
2010-06-16 22:03:24 -07:00
Nathan Weizenbaum
60780379f7 Make sure the status buffer is updated after a rebase. 2010-06-16 22:02:40 -07:00
Sean Bryant
5744d3ec98 Make magit explicitly tell the branch where to push.
Closes #23.
2010-06-16 23:06:42 +01:00
Phil Jackson
82d9943643 Stop diffless commits tricking magit into an infinite loop. 2010-06-15 13:36:16 +01:00
Rémi Vanicat
ba0705cf9f We don't need the magit-tmp buffer to stay between its used.
This first rename the buffer to a hidden buffer, and also remove it
after it have been used.
2010-06-13 15:18:56 +02:00
Nathan Weizenbaum
29a1b34947 Make magit-run-git-async print out the command it's executing.
This gives the user some immediate feedback when running a potentially long command,
such as "git fetch" or "git push".
2010-06-11 23:15:48 +01:00
Phil Jackson
600ffa4097 Elpa compatibility. 2010-06-11 16:15:10 +01:00
Phil Jackson
cff8d04ef1 Release 0.8.1. 2010-06-10 17:35:25 +01:00
Nathan Weizenbaum
fe7656731b Add a prefix arg to magit-remote-update to prompt for a remote. 2010-06-10 13:06:51 +01:00
Phil Jackson
fce3ef1fd0 User now asked for the name of a local tracking branch. Sensible default given. [R] 2010-06-09 22:50:20 +01:00
Phil Jackson
78867ac94d `magit-maybe-create-local-tracking-branch' allows for no "refs/" string. 2010-06-09 21:57:10 +01:00
Phil Jackson
b59f493863 Remote tag back in the buffer list. 2010-06-08 11:48:48 +01:00
Phil Jackson
1dc342aad8 Added script to print authors and their copyright info, used it to fill header. 2010-06-07 23:45:39 +01:00
Phil Jackson
4896e19399 Slightly modified prompt for `magit-git-command'. 2010-06-07 10:46:58 +01:00
Phil Jackson
3b31bee10c Merge remote branch 'refs/remotes/nex3/master' 2010-06-07 10:45:26 +01:00
Nathan Weizenbaum
3096eafb8a Bind : to run Git commands directly.
I chose : as the binding for similarity with M-:.
2010-06-06 16:13:02 -07:00
Nathan Weizenbaum
00569b85f2 Fix a bunch of checkdoc warnings.
This only fixes the easy warnings. Harder stuff like documenting
undocumented functions or making sure all the arguments of each
function are documented is not done.
2010-06-06 16:00:51 -07:00
Nathan Weizenbaum
448ef5cf64 Add an error message for magit-display-process.
This message is more descriptive than the default
when Magit hasn't run a Git command.
2010-06-06 15:59:37 -07:00
Phil Jackson
4b23df61f5 Added a little documentation to the log functions. 2010-06-01 16:46:53 +01:00
Phil Jackson
961e8c94c0 Added `magit-log-first-parent' command. 2010-06-01 16:40:21 +01:00
Ævar Arnfjörð Bjarmason
40dc79f33b Use (magit-read-rev) for "Interactively rebase to:" message
Now it has tab completion like the switch branch command and others
which use (magit-read-rev).

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
2010-05-31 17:06:52 +00:00
Ramkumar Ramachandra
9813ac8859 Replace save-excursion, set-buffer with with-current-buffer
When byte-compiling magit.el, Emacs throws several warnings saying
`save-excursion' defeated by `set-buffer'. Eliminate these warnings by
replacing calls to save-excursion followed by set-buffer with
with-current-buffer.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
2010-05-30 15:58:15 +01:00
Ramkumar Ramachandra
c33f87fe71 Replace goto-line
Replace goto-line with a more suitable combination of goto-char and
forward-line.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
2010-05-30 15:58:12 +01:00
Moritz Bunkus
dc8cc4cb95 Forward port server-running-p' from Emacs 23 as magit-server-running-p' for Emacs < 22 and calls `server-running-p' on >= 23. 2010-05-29 13:24:56 +01:00
Rémi Vanicat
19cb16c32d Remove decency on parse-time. 2010-05-26 21:41:59 +01:00
Phil Jackson
87e196ed10 Highlight the sha1 at the top of a diff buffer. 2010-05-26 18:50:08 +01:00
Rémi Vanicat
7d4c2f6fc8 In magit-insert-section, do not presume that CMD is git
Removing the magit-git-standard-options from magit-insert-section
because:

- the only use of magit-insert-section is inside magit-git-section
  that already add the magit-git-standard-options, we do not need to add
  them twice
- as wrote, magit-insert-section could be used for calling any cmd,
  that may not understand the option in magit-git-standard-options.
2010-05-26 18:45:03 +01:00
Rémi Vanicat
ab90bdf159 [magit-status] Use generate-new-buffer for creating a new buffer
Closes #13: We used to use get-buffer-create, but it will reuse a
buffer with the same name, when we want to create a new one with an
unique name.
2010-05-26 17:15:50 +02:00
Rémi Vanicat
0bb2e4c86f Removing a duplicate switch-to-buffer
We don't need to change buffer twice when we use a new buffer
2010-05-26 17:09:35 +02:00
Oscar Fuentes
cb49072477 Fixed magit-move-branch 2010-05-24 04:35:29 +02:00
Phil Jackson
3bdaf275db Added Mark Hepburn to the contributors list. 2010-05-21 09:45:02 +01:00
Mark Hepburn
98d87b1288 magit-interactive-rebase: use locate-file and exec-path to find emacsclient, instead of hard-coding to exec-directory 2010-05-21 09:45:00 +01:00
Phil Jackson
017828d250 Nicer colours for the tag indicators. 2010-05-20 00:22:14 +01:00
Phil Jackson
b0b65a2434 Nicer colours for the bisect refs. 2010-05-20 00:15:14 +01:00
Phil Jackson
9878186262 Log buffer knows about tagging again.
Closes #5.
2010-05-19 23:23:25 +01:00
Phil Jackson
dc9c1178fd `magit-tag' now knows about revisions. 2010-05-19 23:22:03 +01:00
Phil Jackson
0241232622 Added a couple of faces for good/bad bisect refs. 2010-05-19 22:58:57 +01:00
Oscar Fuentes
2d115df020 Displays the option name instead of the description 2010-05-19 18:10:31 +02:00
Oscar Fuentes
7e8819dbf2 Use all available columns on window for displaying menu items 2010-05-19 03:39:34 +02:00
Oscar Fuentes
fc62c664fd Highlight active options on menu. 2010-05-18 21:52:01 +02:00
Oscar Fuentes
ad5829a2f4 Fixed usage of magit-custom-options on some commands
It is not good to have magit-custom-options when it is nil into the
middle of the list of arguments.
2010-05-18 19:50:19 +02:00
Oscar Fuentes
57fa9eb0fd Corrected docstring of magit-custom-options 2010-05-18 19:25:23 +02:00
Oscar Fuentes
029bf08ea8 Append colon and space to the end of prompt 2010-05-18 19:09:08 +02:00
Oscar Fuentes
92c0b771ed Removed some keybindings and collapsed some menu entries 2010-05-18 19:06:45 +02:00
Oscar Fuentes
ae4e4c5ac2 Added some log options, just for fun. Removed log-grep command 2010-05-18 18:30:23 +02:00
Oscar Fuentes
da70669be0 Do not use use shell-quote-argument for options picked on the menu
This upsets msys-git and it is not needed anymore because git is not
invoked through the shell.
2010-05-18 18:28:48 +02:00
Phil Jackson
420c976f85 Closes #4. Added some bindings for commit-mode. 2010-05-18 10:34:57 +01:00
oscar
bf7bc1a0c5 magit-menu-make-option-list rewritten
The previous implementation generated a single list element for
arguments of the type --arg value. That should be separate list
elements, otherwise the process sees it as a single argument with an
embedded space.
2010-05-18 03:56:45 +02:00
oscar
b2c0fcb7b8 Several branch-related commands and options 2010-05-17 21:43:57 +02:00
oscar
9c63409cc1 Filters commands and options by group 2010-05-17 21:43:20 +02:00
oscar
fe1f6016f0 Code moved to a place where it makes more sense
Also magit-submenu was renamed to magit-menu.
2010-05-17 20:20:39 +02:00
Ævar Arnfjörð Bjarmason
35dfceb3b5 Add a hook for magit-log-edit-mode 2010-05-17 22:51:08 +08:00
Ævar Arnfjörð Bjarmason
50ac04d222 Give magit-mode-hook a docstring 2010-05-17 22:51:08 +08:00
Ævar Arnfjörð Bjarmason
d2d1bd87fd Say "New annotated tag name" not "New tag name" on T
This distinguishes t from T. Sometimes you press one and aren't sure
if you got it right.
2010-05-17 22:49:55 +08:00
oscar
626af3b9c1 Fix showing help
Now it exits after showing the help window because the user can't
interact with it while the menu is working and on some cases the help
buffer uses the same window as the menu, hidding it.
2010-05-16 20:18:31 +02:00
oscar
903e642bf6 Pass options to log commands 2010-05-16 20:10:03 +02:00
oscar
abc459911b Removed extra parentheses 2010-05-16 19:12:03 +02:00
oscar
2f9c9b99fb Do not require the -option suffix for menu items 2010-05-16 18:43:33 +02:00
oscar
46592b4dcd Display and input options 2010-05-16 18:36:10 +02:00
oscar
b7964bb4b4 Added some log commands 2010-05-16 16:32:11 +02:00
oscar
f028c76330 Key for showing the docstring of the associated function 2010-05-16 04:34:38 +02:00
oscar
0f03b076e7 Show two menu entries per line 2010-05-16 02:11:17 +02:00
oscar
9cd7d57ed1 Removed some debug code 2010-05-16 01:15:34 +02:00
oscar
c40dfe75e5 Pass prefix argument to command 2010-05-16 01:14:34 +02:00
oscar
09f09afd34 Works without supporting prefixes 2010-05-15 20:02:40 +02:00
Phil Jackson
0a9bf3005a New function `magit-log-all' which provides --all functionality. 2010-05-14 11:57:07 +01:00
Rémi Vanicat
0c1f170e44 Use magit-git-output instead of magit-git-string in magit-interactive-resolve
closes #1: magit-git-string was responsible for trimming the last \n
2010-05-13 19:07:26 +08:00
Phil Jackson
11c14b6357 Put back magit-list-buffers' and magit-list-projects' as they might come in handy to others. 2010-05-12 23:34:04 +01:00
Phil Jackson
75941be63b Gave `magit-log-grep' a key binding (s - search). 2010-05-11 10:06:33 +01:00
Phil Jackson
6c8947a131 Missed a possible graph shape in log re. 2010-05-11 10:03:38 +01:00
Phil Jackson
ea7437137d Revert "Merge branch 'am-from-wl'"
This reverts commit 1b31c106f8.
Reverting "Added `magit-wl-pipe-to-am'."
Reverting "Replace cl functions."
Reverting "`magit-list-projects' returns full path."
Reverting "Added `magit-list-projects."
Reverting "Added `magit-list-buffers'."
2010-05-07 21:28:53 +01:00
Phil Jackson
cb458d5918 Acknowledge David Abrahams. 2010-05-06 19:38:40 +01:00
Phil Jackson
effbbb3b13 Added `magit-wl-pipe-to-am'. 2010-05-06 19:26:51 +01:00
Phil Jackson
326fff2823 Replace cl functions. 2010-05-06 19:26:34 +01:00
Phil Jackson
f2817e7c78 `magit-list-projects' returns full path. 2010-05-06 18:18:02 +01:00
Phil Jackson
0ca04f71bb Added `magit-list-projects. 2010-05-06 17:57:08 +01:00
Phil Jackson
1b31c106f8 Added `magit-list-buffers'. 2010-05-06 17:56:59 +01:00
Ramkumar Ramachandra
f8e429e8de Add an option to confirm reverting an item. 2010-05-06 12:33:11 +01:00
David Abrahams
abba1a02e2 Have files saved when finished a three-way-merge with ediff. 2010-05-06 11:21:27 +01:00
Rémi Vanicat
c50fab4242 Added a compatibility function for start-file-process as it does not exist
in Emacs 22.
2010-05-06 00:48:36 +01:00
Moritz Bunkus
d4aa3ff85a Only call server-running-p on Emacs 23 or newer 2010-05-06 00:31:24 +01:00
Phil Jackson
8bf8a36db6 Use `magit-section-case' to get branch from wazzup. 2010-05-06 00:27:20 +01:00
Rémi Vanicat
179f1b9809 Use guess-branch and default-rev wherever we ask for a branch or a rev.
Signed-off-by: Rémi Vanicat <vanicat@debian.org>
2010-05-06 00:07:42 +01:00
Rémi Vanicat
b6d7f36a7d When there is a guessed branch, it make a good default rev.
Signed-off-by: Rémi Vanicat <vanicat@debian.org>
2010-05-06 00:06:11 +01:00
Óscar Fuentes
51a1b6d84c Revert buffers after committing
I find the VC status on the modeline useful (the one that shows
Git[:-]branchname) This indicates when the buffer's associated file was
changed on disk (`:' for edited, `-' for unedited.) This indicator is
not affected by a commit with magit, so it keeps signaling a file as
edited when in fact it is not. This patch reverts all buffers that are
visiting a file in the current working tree after a commit.
2010-05-05 16:36:36 +01:00
Óscar Fuentes
5f371df069 Correct informative text for showing more log entries
At the end of the log, the text ``type "l" to show more logs'' is
shown. The actual keybinding is `e', not `l'.
2010-05-05 16:31:56 +01:00
Rémi Vanicat
2acc8be623 Make the process-connection-type customizable.
We need process-connection-type to be nil on cygwin
We need process-connection-type to be t for magit to ask for password
So we now use the new variable magit-process-connection-type for this,
defaulting to nil on cygwin, and to t on others platform.
2010-05-05 15:19:49 +01:00
Rémi Vanicat
c256a726d4 Make magit ask for password also when git is asking for an host password
Previously we were asking only when there was a passphrase for ssh key.
2010-05-05 15:04:25 +01:00
Phil Jackson
3d1faa122e Added some missing contributor names. 2010-05-05 13:48:56 +01:00
Rémi Vanicat
ed904c7a00 use "e" for more log
Then we can use "l" to show short-log from long log an reflog.
At the same time we add the different keybinding to see the different
kind of logs from the others logs.
2010-05-05 10:17:49 +01:00
Leo
975536e966 Fix open parentheses in doc strings
The latest doc change seems to bring in a lot of opening parentheses in
the doc strings. This patch fixes them.
2010-05-02 10:29:07 +01:00
Roger Crew
26712041ec remove runtime dependence on cl.el
This patch removes the runtime dependences on the cl package.
Luckily, there weren't too many of these.

From the GNU emacs lisp manual (Appendix D.1 coding conventions)

   * Please don't require the `cl' package of Common Lisp extensions
     at run time.  Use of this package is optional, and it is not part
     of the standard Emacs namespace.  If your package loads `cl' at
     run time, that could cause name clashes for users who don't use
     that package.

     However, there is no problem with using the `cl' package at
     compile time, with `(eval-when-compile (require 'cl))'.  That's
     sufficient for using the macros in the `cl' package, because the
     compiler expands them before generating the byte-code.

There's also the small matter that many of the function implementations
in cl, striving for the full generality of Common Lisp (much of which
is completely useless in Emacs), turn out to be horrible.

E.g., for a fun time, dig down through

      (find-if pred list :from-end t),

and look at what it ACTUALLY does when you finish macroexpanding
everything.  It tests *every* element of the list against the
predicate, not just the rightmost ones stopping when it finds the
first match.  Once it determines the rightmost match, it then retains
NOT the element itself, but its *ordinal* position N, which then gets
used in (elt list N), meaning ANOTHER listwalk, just to get the
element back in order to return it.  Nor is the byte-compiler anywhere
near smart enough to optimize this away (I'm not sure *any* compiler
would be...)

I'll grant cl has some useful macros in it, but it comes bundled with a
lot of crap and you need to be really careful about what you use.  For
many things, you're better off rolling your own functionality using
the standard routines available (e.g., while, mapcar, and reverse are
all written directly in C).

And you most definitely do NOT want to be foisting the crap on
everybody else, hence the need to keep it out of the runtime.

Meanwhile, here's The Patch:

	Modified magit.el
2010-04-28 12:21:49 +01:00
Roger Crew
cf60063e3b *magit-FOO-log* / introduce buffer name variables
Introduces

  magit-log-buffer-name 	*magit-log*
  magit-log-edit-buffer-name	*magit-edit-log*  (was *magit-log-edit*)
  magit-log-grep-buffer-name	*magit-grep-log*  (was *magit-log-grep*)
  magit-process-buffer-name 	*magit-process*
  magit-commit-buffer-name 	*magit-commit*
  magit-stash-buffer-name	*magit-stash*

Also adds C-c C-] as a binding for magit-log-edit-cancel-log-message
since C-c C-] as the aborting counterpart to C-c C-c is at least a
vague convention for other modes (cf. rmail, vm, query-replace...)

Motives:

It annoys me that, when wanting to switch to the *magit-log* buffer
from some random place, I can't type *ma<space>-l<space> and have it
complete properly, at least not if I've previously ever done a commit
(because there's then a *magit-log-edit* out there stealing the
completion).

Also looks like if I ever use magit-log-grep, I will be likewise
screwed.

Finally, it disturbs my sense of aesthetics when I look at source code
and see the same strings occuring over and over.  Usually, that's
crying defvars/defconsts.  (And this will also makes life easier
in the event you don't like my buffer name changes for -log-edit
and -log-grep).

 - -

(...This all leaves *magit-tmp* as the only remaining case of a buffer
    name string occurring multiple times, but that needs to be handled
    differently, so that'll be a different patch...)

(...Note that having buffer names as variables also allows the
    eventual possibility of making them local --- or at least the
    option thereof --- so that one can be visiting several
    repositories at once and not having these buffers all clobbering
    each other.  There's a tradeoff here in that some folks may find
    it confusing/annoying to have more than one set of these buffers
    to deal with,... hence option.

    *If* one is going to go that route, current gut feeling is buffer
    name variables should be local to *just* the status buffer(s),
    void elsewhere, and anything needing one of the auxiliary buffers
    should dispatch through its own status buffer to get what it
    wants.  That way, we're not having to repeat/update/copy
    per-repository definitions everywhere....)

The patch:
2010-04-28 12:17:26 +01:00
Roger Crew
666e4113e9 docstrings for various functions
Here, have some docstrings:

(...it being something of a show-stopper for newbies when they want to
find out what a given keystroke will do, they hit ^Hk [or ^Hf or ^Hv],
and nothing useful comes out...)
2010-04-27 10:59:48 +01:00
Roger Crew
4c2e7ee5e9 Magit now compiles cleanly.Fix for appending an explicit number of new log entries. 2010-04-25 19:22:33 +01:00
Phil Jackson
1701272fce Fix for appending an explicit number of new log entries. 2010-04-25 19:14:41 +01:00
Rémi Vanicat
2348c70ff1 Added a function to grow the number of log in the log view
The log view will show an help at its end when there is more log to
view, and the function is bound to "l" in log view.
2010-04-25 17:25:06 +01:00
Roger Crew
41343a06f5 magit-show-branches shows wrong repository
If you do
.  magit-status on repository .../x
.  V (magit-show-branches)
.  magit-status on repository .../y
.  V (magit-show-branches)

you get the branch listing for repository .../x

Also, as a side issue, functionality of a buffer should not be
keyed off of the buffer name (in this case, renaming the buffer
should not change what V or g does).

The following patch deals with both of these.
2010-04-25 17:11:29 +01:00
Rémi Vanicat
d976e65dbf Regrouping command that create new view of current git repositories.
Signed-off-by: Rémi Vanicat <vanicat@debian.org>
2010-04-12 14:08:11 +01:00
Rémi Vanicat
6312006a54 Moving function related to current status
magit-reset-head is also put wherever there are commits

Signed-off-by: Rémi Vanicat <vanicat@debian.org>
2010-04-12 14:08:11 +01:00
Rémi Vanicat
d5dd0578ba Moving function working specifically on status hunk, diff and files
Signed-off-by: Rémi Vanicat <vanicat@debian.org>
2010-04-12 14:08:11 +01:00
Rémi Vanicat
3eec4705bc Moving merging and branching function where there are commit and branch.
Signed-off-by: Rémi Vanicat <vanicat@debian.org>
2010-04-12 14:08:11 +01:00
Rémi Vanicat
6328782833 Moving apply, cherry-pick and revert function.
They all apply to hunk, commit and diff that are in
status, stash, log, reflog, diff and wazzup buffers.

Signed-off-by: Rémi Vanicat <vanicat@debian.org>
2010-04-12 14:08:11 +01:00
Rémi Vanicat
bca27d36bb Moving diff view function where there are commits.
Signed-off-by: Rémi Vanicat <vanicat@debian.org>
2010-04-12 14:08:11 +01:00
Rémi Vanicat
682809d82d Moving staging function to status buffer
Signed-off-by: Rémi Vanicat <vanicat@debian.org>
2010-04-12 14:08:11 +01:00
Rémi Vanicat
d2b814ad9e Moving hunk size modifier in modes where there are hunks.
Signed-off-by: Rémi Vanicat <vanicat@debian.org>
2010-04-12 14:08:11 +01:00
Rémi Vanicat
9105c3e557 Added minor mode for the different magit buffer.
Signed-off-by: Rémi Vanicat <vanicat@debian.org>
2010-04-12 14:08:11 +01:00
Moritz Bunkus
8175d6dfad Only start the server if it isn't running
magit's interactive rebase feature tries to start the server even if
it is already running. If it is already running then Emacs asks
whether or not it should destroy existing clients. This is fatal if
the frame magit is running in was created by emacsclient
itself (e.g. Emacs is running in the background with "--daemon"), so
the user has to answer "no".

This question can be avoided if the server is only startet if it isn't
already running.
2010-04-01 11:16:12 +01:00
Phil Jackson
e7a3b608e6 Fix `magit--branch-name-at-point'. 2010-04-01 01:55:56 +01:00
Phil Jackson
db44227cb0 Use fundamental-mode' rather than text-mode' 2010-04-01 01:53:35 +01:00
Phil Jackson
290d5fe70f Comments, removed old-point code which did nothing. 2010-04-01 01:51:43 +01:00
Phil Jackson
f735945848 Fix `magit--is-branch-at-point-remote' 2010-04-01 01:48:28 +01:00
Phil Jackson
bf49b72cf0 Removed "remotes" from the branch name. 2010-04-01 01:17:09 +01:00
Phil Jackson
a86fab4e97 n/p now allow the user to move about in branch-view. 2010-03-30 23:08:50 +01:00
Phil Jackson
1ae36db891 Put branch name in text properties. 2010-03-30 23:07:09 +01:00
Phil Jackson
b261669efe Have `magit--branch-name-from-line' pull out the branch name. 2010-03-30 22:45:59 +01:00
Phil Jackson
79d7f46502 Bit more output. 2010-03-30 22:45:05 +01:00
Phil Jackson
e09ef67ea6 SHA1 gets colour. 2010-03-30 22:32:43 +01:00
Moritz Bunkus
ad686c5938 Provide useful functions for the branch list
The following functions are available from the branch list (which in
turn is made read-only):

- Checking out the branch in the current line
- Deleting the branch in the current line (prefix forces deletion even
if not merged into current branch); works on both local and remote
branches
- Manual and automatic merges of the branch in the current line into
the current branch
- Quitting the branch list

Includes updated documentation.
2010-03-30 14:53:45 +01:00
Moritz Bunkus
920c3b3a3c Guess the remote branch name from the branch's "merge" config item
If you have a local tracking branch, e.g. called 'test', and the
remote branch name is different than test (e.g. 'somwhere/master')
then the commands for retrieving the unpulled and unpushed commits was
calling "git log test..somwehere/test" which may or may not exist.
2010-03-30 13:45:53 +01:00
Phil Jackson
33ea60d690 If wazzup head is detached then describe it so. 2010-03-29 21:21:09 +01:00
Rémi Vanicat
c51582ee17 Using HEAD as branch-name when this is a detached HEAD 2010-03-29 21:14:56 +01:00
Rémi Vanicat
82b8d93731 check for the current branch before switching buffer
The wazzup buffer might already exist, so if we look at the branch
name in it, it might refer to another branch, even another repository.
2010-03-29 20:57:27 +01:00
Rémi Vanicat
7c80c10199 Added docstring for section's function 2010-03-27 11:33:55 +00:00
Rémi Vanicat
07c3225ed6 Better documentation and error reporting.
Corrected style error in comment, docstring, and error message, thanks to
checkdoc-minor-mode and Aspell.

Some indent and minor code style fix too
2010-03-27 11:33:55 +00:00
Phil Jackson
27ef54451b Finished off documentation. 2010-03-26 16:36:55 +00:00
Phil Jackson
c23b334d29 Merge branch 'log-grep' 2010-03-26 16:33:50 +00:00
Phil Jackson
c7c02c2f20 Added the command `magit-log-grep' (no keybinding). 2010-03-26 16:33:32 +00:00
Phil Jackson
29395e0d46 `magit-refresh-log-buffer' can now take more than one (git commandline) argument. 2010-03-26 16:31:40 +00:00
Phil Jackson
f9283aaa0d Merge remote branch 'refs/remotes/philjackson/svn-find-rev' 2010-03-26 14:00:13 +00:00
Phil Jackson
0fc398039d Merge commit 'refs/merge-requests/11' of git://gitorious.org/magit/mainline 2010-03-20 16:24:05 +00:00