Remove unused variable in run_prompt_command()
Fix segfault when running TIG_SCRIPT with no stdin given

Since displayed_views() would always return >= 1, no initial view would
be selected which again would cause get_input() to dereference a NULL
pointer.
Remove unnecessary :wait from refs/default-test steps
Fix bogus comparison in load_options

This fixes the following warning from cppcheck:

   src/options.c:857:71: warning: comparison of constant '-1' with boolean expression is always false [-Wbool-compare]

Fixes #322
Fix a couple of pedantic warnings

This addresses the following type warnings emitted by clang:

 1) src/watch.c:192:2: warning: void function 'watch_apply' should not return void expression [-Wpedantic]
        return watch_apply_changes(source, WATCH_EVENT_LOAD, changed);
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 2) include/tig/keys.h:57:6: warning: ISO C forbids forward references to 'enum' types [-Wpedantic]
    enum status_code get_key_value(const char **name, struct key *key);
         ^

The warnings was emitted when executing the following command:

 > make clean all CFLAGS="-Wpedantic -Wno-extra-semi -Wno-variadic-macros -Wno-gnu-empty-initializer"
Add test for segfault related to TIG_SCRIPT usage
Add status test for file names
Refactor helper to create git repo from tgz
Use the unofficial bash strict mode for the test scripts

Based on http://redsymbol.net/articles/unofficial-bash-strict-mode/ the
strict mode makes the tests error out when a command exits with a
non-zero code--even for commands part of a pipe. In addition errors are
reported for references to undefined variables.
Add dash compatibility for /bin/sh

Dash doesn't support `set -o pipefail`.
More test fixes for dash and the strict mode
Configure travis to run test both with default sh and bash
Add basic tests for the blame and tree views
Ensure a stable view column search

This (should) fix the tree/default-test.
tig-2.0.3
Add move-half-page-up and move-half-page-down actions

This allows a user to maintain half a window of context when paging
through content (and allows for <Ctrl-u> and <Ctrl-d> behavior to match
Vim's), but does not bind any keys to them by default.

[ jf: add NEWS entry and tigrc stubs. ]
Allow tests to invoke tig with view arguments

This changes how initialization so that no neutral view is opened and
most importantly ensures that the initial view request is executed.
Tests assuming they start in a neutral view can now ditch the initial
`:view-*` command.
Change blame test to invoke the view directly

This also adds an additional check for the file filter.
Preserve the cursor position when changing the diff context

Fixes #284
Fix diff context restoring for diff opened directly via 'tig show'

The code that allows to jump to a line when opening a view from the
command line (e.g. `tig +10`) conflicted with diff context restoring
since it always restored using `view->env->lineno` regardless of whether
it was the view's first rendering or not. Furthermore, since diff_select
sets `view->env->lineno` this lead to strange line jumps.

The bug is fixed by using `view->prev_pos` for implementing `+<lineno>`
and ensuring that it only happens for the initial view rendering.