show running command in the minibuffer

17 views
Skip to first unread message

willi...@gmail.com

unread,
Apr 25, 2013, 5:30:42 AM4/25/13
to ma...@googlegroups.com
Hi,

Is there an option that i can enable to show running git command?  Similar to vc-command-messages.


-William

Drew Raines

unread,
Apr 25, 2013, 10:53:00 AM4/25/13
to ma...@googlegroups.com
willi...@gmail.com wrote:

> Is there an option that i can enable to show running git command?
> Similar to vc-command-messages.

Press $ from your *magit* buffer.

-Drew

willi...@gmail.com

unread,
Apr 25, 2013, 9:55:58 PM4/25/13
to ma...@googlegroups.com, aara...@gmail.com

Seems it doesn't work for all commands, like magit-refresh.


-William

ncale...@gmail.com

unread,
May 2, 2013, 6:28:39 PM5/2/13
to ma...@googlegroups.com, aara...@gmail.com, willi...@gmail.com
That is correct: magit has two classes of git execution, synchronous for (mostly) status updating and asynchronous for (mostly) user initiated actions.  There is a somewhat confusing pull request open at https://github.com/magit/magit/pull/516 to add a command log, but the attached patch(es) do not implement the synchronous logging needed for status updating.

I use magit to interact with github.com/mozilla/mozilla-central, a fairly large repository, and I have several patches under development to make this more performant.  I would love testers and reviewers, if people are interested.  For example, https://github.com/magit/magit/pull/636 speeds up branch-guessing significantly for me.

I also have patches in the works to

* add a mode-line indicator during refresh;
* cache frequent git invocations;
* make displaying tree-graph output in logs an option (this is very slow on large repositories);
* log git invocations, outputs, and record running times (so that we can profile magit more effectively);
* make sections not be refreshed automatically.

These almost make magit useable with mozilla-central.

Yours,
Nick Alexander

ncale...@gmail.com

unread,
May 2, 2013, 6:30:45 PM5/2/13
to ma...@googlegroups.com, aara...@gmail.com, willi...@gmail.com, ncale...@gmail.com


On Thursday, May 2, 2013 3:28:39 PM UTC-7, ncale...@gmail.com wrote:


On Thursday, April 25, 2013 6:55:58 PM UTC-7, willi...@gmail.com wrote:

On Thursday, April 25, 2013 10:53:00 PM UTC+8, Drew Raines wrote:
willi...@gmail.com wrote:

> Is there an option that i can enable to show running git command?
> Similar to vc-command-messages.

Press $ from your *magit* buffer.

Seems it doesn't work for all commands, like magit-refresh.

That is correct: magit has two classes of git execution, synchronous for (mostly) status updating and asynchronous for (mostly) user initiated actions.  There is a somewhat confusing pull request open at https://github.com/magit/magit/pull/516 to add a command log, but the attached patch(es) do not implement the synchronous logging needed for status updating.

 Posted before refactoring my post into two separate posts.

I intended to say that I have patches in preparation for logging these synchronous git invocations, complete with some profiling information.

Best,
Nick
Reply all
Reply to author
Forward
0 new messages