git-smart icon indicating copy to clipboard operation
git-smart copied to clipboard

Ability to run smart-log in silent mode

Open brainopia opened this issue 13 years ago • 1 comments

I run gl pretty often and I set LESS to clear terminal after quitting, so I see a lot of:

$ gl
Executing: git log --pretty=format:%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset --graph
$ gl 
Executing: git log --pretty=format:%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset --graph
$ gl
Executing: git log --pretty=format:%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset --graph

Therefore I would like ability to prevent output of obvious Executing: ... line, I did it in this pull-request by redirecting it to STDERR, so I can silence it with alias gl='git smart-log 2>/dev/null without affecting functionality of this command.

Review on Reviewable

brainopia avatar Jan 18 '12 05:01 brainopia

+1

nuc avatar Feb 16 '12 14:02 nuc