]> git.ipfire.org Git - thirdparty/git.git/commit - convert.c
convert: make apply_filter() adhere to standard Git error handling
authorLars Schneider <larsxschneider@gmail.com>
Sun, 16 Oct 2016 23:20:35 +0000 (16:20 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Oct 2016 18:36:50 +0000 (11:36 -0700)
commitb84be553548b6d493d6eff728f3e11b5b5f9a254
treea1da365a84904433c42e38155db514c47d26120e
parentbb643d8bf872c416b7445e728e2675ac6490fe1d
convert: make apply_filter() adhere to standard Git error handling

apply_filter() returns a boolean that tells the caller if it
"did convert or did not convert". The variable `ret` was used throughout
the function to track errors whereas `1` denoted success and `0`
failure. This is unusual for the Git source where `0` denotes success.

Rename the variable and flip its value to make the function easier
readable for Git developers.

Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
convert.c