Makefile: eliminate TERM=dummy

This was only needed because *this* dummy had "import user" in the code
a long, long time ago, and is not really needed.

Signed-off-by: David Aguilar <davvid@gmail.com>
git-{cola,dag}: import functions to make things more readable

Signed-off-by: David Aguilar <davvid@gmail.com>
core: move unicode handling to the outer edges

There were too many instances of encode() and decode() throughout the
code.  Centralize everything into the `core` module so that we can keep
the internals unicode-pure.

This simplifies things substantially since unicode is now used
consistently throughout and the only places where encode() and decode()
are used are in the outer edges and a few spot edge cases.  The majority
of the code is now blissfully ignorant.

Signed-off-by: David Aguilar <davvid@gmail.com>
dag: disambiguate between refspec and pathspec

Default to adding "--" after the branch name to avoid confusing git when
a path exists with the same name as the branch.

Signed-off-by: David Aguilar <davvid@gmail.com>
git: always return (status, out, err)

Git.execute() had too many flags and its output format changed depending
on these flags.

Simplify it by making git.foo() always return (status, out, err).  This
makes the code easier to read and more robust since we will never try to
parse stderr as if it were stdout.

This is a fairly big patch since it touched pretty much every file that
contained git commands.  We may want to later take some things (e.g. the
stuff in stash.model) and move it to gitcmds so that later refactors are
easier and involve less files.

For example, eliminating global git and model instances would be helped
by such a change, and is a refactoring that needs to be done to allow
hot-swapping of the current Git repository, which would be a nice
feature.

Signed-off-by: David Aguilar <davvid@gmail.com>
style: use raw strings when defining regexes

Signed-off-by: David Aguilar <davvid@gmail.com>
grep: make Ctrl+l focus the text entry field

Use the same keyboard shortcut as Firefox + Chrome.

Signed-off-by: David Aguilar <davvid@gmail.com>
xbase: call setMenuBar() on the custom menubar

Signed-off-by: David Aguilar <davvid@gmail.com>