Added Xcode script
Removed some useless variable assignments
Fixed potential crash with uninitialized variables
Changed context_lines and interhunk_lines to uint32_t to match struct s_xdemitconf
Provide a default reflog message when moving the HEAD