@@ -227,6 +227,32 @@ function(_yargs, d3, demos) {
227227
228228 document . getElementById ( 'last-command' ) . textContent = entry
229229
230+ if ( entry . trim ( ) === 'help' || entry . trim ( ) === 'help()' ) {
231+ this . info ( 'pres() = Turn on presenter mode' )
232+ this . info ( 'undo = Undo the last git command' )
233+ this . info ( 'redo = Redo the last undone git command' )
234+ this . info ( 'mode = Change mode' )
235+ this . info ( 'clear = Clear the history pane and reset the visualization' )
236+ this . info ( )
237+ this . info ( 'Available Git Commands:' )
238+ this . info ( '`git branch`' )
239+ this . info ( '`git checkout`' )
240+ this . info ( '`git cherry_pick`' )
241+ this . info ( '`git commit`' )
242+ this . info ( '`git fetch`' )
243+ this . info ( '`git log`' )
244+ this . info ( '`git merge`' )
245+ this . info ( '`git pull`' )
246+ this . info ( '`git push`' )
247+ this . info ( '`git rebase`' )
248+ this . info ( '`git reflog`' )
249+ this . info ( '`git reset`' )
250+ this . info ( '`git rev_parse`' )
251+ this . info ( '`git revert`' )
252+ this . info ( '`git tag`' )
253+ return
254+ }
255+
230256 if ( entry === 'pres()' ) {
231257 window . pres ( )
232258 return
@@ -371,7 +397,9 @@ function(_yargs, d3, demos) {
371397 return this . error ( "'git log' can take at most one argument in this tool" )
372398 }
373399 var logs = this . getRepoView ( ) . getLogEntries ( args [ 0 ] || 'head' )
374- . map ( l => `<span class='log-entry'>> ${ l } </span>` ) . join ( '' )
400+ . map ( function ( l ) {
401+ return "<span class='log-entry'>> " + l + "</span>"
402+ } ) . join ( '' )
375403 this . info ( logs )
376404 } ,
377405
@@ -879,7 +907,9 @@ function(_yargs, d3, demos) {
879907 } else if ( subcommand === "show" ) {
880908 var logs = this . getRepoView ( ) . getReflogEntries ( ref )
881909 this . info (
882- logs . map ( l => `<span class='reflog-entry'>> ${ l } </span>` ) . join ( '' )
910+ logs . map ( function ( l ) {
911+ return "<span class='reflog-entry'>> " + l + "</span>"
912+ } ) . join ( '' )
883913 )
884914 } else if ( subcommand === "expire" || subcommand === "delete" ) {
885915 this . info ( "Real git reflog supports the '" + subcommand +
0 commit comments