Skip to content

Commit

Permalink
gitk: Add comments to explain encode_view_opts and decode_view_opts
Browse files Browse the repository at this point in the history
Summarize these functions to save the reader some time.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Jonathan Nieder authored and Paul Mackerras committed Mar 20, 2010
1 parent b9b142f commit e7feb69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gitk
Original file line number Diff line number Diff line change
Expand Up @@ -3851,6 +3851,7 @@ set known_view_options {
{cmd t50= + {} {mc "Command to generate more commits to include:"}}
}

# Convert $newviewopts($n, ...) into args for git log.
proc encode_view_opts {n} {
global known_view_options newviewopts

Expand Down Expand Up @@ -3884,6 +3885,7 @@ proc encode_view_opts {n} {
return [concat $rargs [shellsplit $newviewopts($n,args)]]
}

# Fill $newviewopts($n, ...) based on args for git log.
proc decode_view_opts {n view_args} {
global known_view_options newviewopts

Expand Down

0 comments on commit e7feb69

Please sign in to comment.