git/builtin
Ramkumar Ramachandra a2ec3ad28f revert: Don't check lone argument in get_encoding
The only place get_encoding uses the global "commit" variable is when
writing an error message explaining that its lone argument was NULL.
Since the function's only caller ensures that a NULL argument isn't
passed, we can remove this check with two beneficial consequences:

1. Since the function doesn't use the global "commit" variable any
   more, it won't need to change when we eliminate the global variable
   later in the series.
2. Translators no longer need to localize an error message that will
   never be shown.

Suggested-by: Junio C Hamano <gitster@pobox.com>
Mentored-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-08-04 15:40:42 -07:00
..
2011-03-09 23:52:57 -08:00
2011-05-31 12:19:11 -07:00
2011-03-09 23:52:57 -08:00
2011-06-20 14:27:36 -07:00
2011-05-31 12:19:11 -07:00
2010-10-21 17:16:10 -07:00
2011-06-20 14:27:36 -07:00
2011-06-08 17:21:08 -07:00
2011-03-22 10:16:54 -07:00
2011-03-22 11:43:27 -07:00
2011-05-30 00:00:07 -07:00
2011-05-31 12:19:11 -07:00
2010-11-24 15:55:19 -08:00
2011-03-22 10:16:54 -07:00
2011-03-22 10:16:54 -07:00
2011-05-31 12:19:11 -07:00
2011-03-09 23:52:56 -08:00
2011-03-22 10:16:54 -07:00
2011-03-22 10:16:54 -07:00
2011-03-22 10:16:54 -07:00
2011-04-01 17:55:55 -07:00
2011-03-22 11:43:27 -07:00
2011-03-22 10:16:54 -07:00
2011-04-01 17:55:55 -07:00
2011-05-31 12:19:11 -07:00
2011-05-19 10:55:54 -07:00
2011-03-09 23:52:56 -08:00
2011-05-31 12:19:11 -07:00
2011-05-10 08:45:37 -07:00
2011-03-22 10:16:54 -07:00
2010-11-15 10:04:43 -08:00
2011-03-22 10:16:54 -07:00