Mercurial > hg
comparison .hgtags @ 24056:ae453d166d51
trydiff: replace 'binarydiff' variable by 'binary' variable
It's not obvious, but every path in the 'if opts.git or losedatafn:'
block will have checked whether the file is binary [1]. Let's assign
the result of this check to a variable so we can simplify by checking
'binary and opts.git' in only one place instead of every place we
currently assign to 'binarydiff'.
[1] Except when deleting an empty file, but checking whether an empty
string is binary is very cheap anyway.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 22 Jan 2015 21:03:57 -0800 |
parents | a44e06cf0d9d |
children | b9ae778d78a2 |
comparison
equal
deleted
inserted
replaced
24055:7f4e6b5fce03 | 24056:ae453d166d51 |
---|