Skip to contentSkip to conversation

Is column.ui.* configuration a bit too strong?

DISCUSSION Junio C Hamano 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Since its inception at 7e29b825 (Add column layout skeleton and git-column, 2012-04-21), it seems that git_column_config() asked for a specific $command did not give "column.$command.*" any precedence over the fallback value defined for "column.ui.*". If you happen to have column.ui.* earlier than the corresponding column.$command.* in your configuration, then the values come from column.ui.* may be overwritten, but the code does not seem to enforce "if there is a setting for a specific command, honor that, otherwise fall back to the generic 'ui' setting".

Am I misreading the code?

#1 lore raw
Quoted 11 lines · Junio C Hamano

Since its inception at 7e29b825 (Add column layout skeleton and git-column, 2012-04-21), it seems that git_column_config() asked for a specific $command did not give "column.$command.*" any precedence over the fallback value defined for "column.ui.*". If you happen to have column.ui.* earlier than the corresponding column.$command.* in your configuration, then the values come from column.ui.* may be overwritten, but the code does not seem to enforce "if there is a setting for a specific command, honor that, otherwise fall back to the generic 'ui' setting".

Am I misreading the code?

Hmm.. probably not. The way I read it, the git_column_config() relies on the order that git_config() calls it, which should be "undefined order" from git_column_config point of view.

Signature · 1 line
Duy