FredrikNoren / ungit

The easiest way to use git. On any platform. Anywhere.
MIT License
10.43k stars 636 forks source link

Show actual git command executed #153

Closed ToastyMallows closed 11 years ago

ToastyMallows commented 11 years ago

This would be a great way to teach the user the actual commands that git uses.

When a user commits some files with a comment, they would see "git commit -m 'hello world'"

notslang commented 11 years ago

that would be nice... kinda like how phpMyAdmin does it for mysql commands. though please don't make this the default, that would become annoying really quickly.

asakurayoh commented 11 years ago

Just an option to display it would be awesome. With that, You would really learn git

vadi2 commented 11 years ago

I agree that this shouldn't be the default, but could be available.

rclilly commented 11 years ago

+1 to this suggestion, and I have no preference regarding whether it's the default or not.

tmr232 commented 11 years ago

+1 Being able to modify the command would also be neat.

vadi2 commented 11 years ago

Modify? We're talking about viewing them.

tmr232 commented 11 years ago

Just figured that if you can view the command - it might be nice to also be able to modify it.

vadi2 commented 11 years ago

I suppose. I think that ouht to be a separate ticket though.

FredrikNoren commented 11 years ago

Ok so I've added a configuration variable to show the git output, but I have to warn you that it's probably not going to be super helpful since a lot of the commands aren't really what you would use as a cli user. But this could be helpful for debugging etc. anyway. Also, I've got some vague plans to either change to git plumbing commands (which are even more obscure but it's the ones you're supposed to use as an api to git) or a js git implementation, which would make this even less useful for understanding what git commands ungit is using.