author | Shawn O. Pearce <spearce@spearce.org> | |
Sat, 18 Nov 2006 08:08:51 +0000 (03:08 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sat, 18 Nov 2006 08:08:51 +0000 (03:08 -0500) | ||
commit | b67651129897738496a9dcd3c01129a42acd11db | |
tree | cff45ea5bc4c42b1d562f70cea461bfe466f4484 | tree | snapshot |
parent | 32e0bcab59334ed8f1955c8afa830de22362c1ec | commit | diff |
git-gui: Refactor file state representations.
It just felt wrong to me that I was using _ as part of the mode argument
to display_file to mean "don't care/use existing" and * as part of
the mode argument to mean "force to _".
So instead use ? to mean "don't care/use existing" and _ to mean
"force to _". The code is a lot clearer this way and hopefully it
won't drive another developer insane, as it did me.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
It just felt wrong to me that I was using _ as part of the mode argument
to display_file to mean "don't care/use existing" and * as part of
the mode argument to mean "force to _".
So instead use ? to mean "don't care/use existing" and _ to mean
"force to _". The code is a lot clearer this way and hopefully it
won't drive another developer insane, as it did me.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui | diff | blob | history |