build: add default aliases

For now simply add a few common aliases.

  co = checkout
  ci = commit
  rb = rebase
  st = status

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
transport-helper: add 'force' to 'export' helpers

Otherwise they cannot know when to force the push or not (other than
hacks).

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
transport-helper: fix extra lines

Commit 9c51558 (transport-helper: trivial code shuffle) moved these
lines above, but 99d9ec0 (Merge branch 'fc/transport-helper-no-refspec')
had a wrong merge conflict and readded them.

Reported-by: Richard Hansen <rhansen@bbn.com>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
transport-helper: check for 'forced update' message

So the remote-helpers can tell us when a forced push was needed.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
fast-export: improve argument parsing

We don't want to pass arguments specific to fast-export to
setup_revisions.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
remote-helpers: generate scripts

The same way other python scripts are generated, so the shebang is
replaced by PYTHON_PATH.

Also, cleanup the Makefile.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
build: fix installation of scripts

They need the gitexecdir.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
remote-helpers: rename tests

The .t extension is more standard for sharness tests.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
remote-helpers: allow direct test execution

Previously 'make' was the only option, or manually specifying the
'TEST_DIRECTORY'.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
fast-export: add new --refspec option

So that we can convert the exported ref names.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
transport-helper: add support for old:new refspec

By using fast-export's new --refspec option.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
fast-import: add support to delete refs

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
fast-export: add support to delete refs

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
transport-helper: add support to delete branches

For remote-helpers that use 'export' to push.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
transport-helper: don't update refs in dry-run

The remote helper namespace should not be updated.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
build: fix remote tests

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
transport-helper: remove old cruft

Otherwise the push delete feature doesn't work.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Reorganize remote-helpers

They should be distributed and tested by default.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Add support for ruby commands

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
ruby: add support for internal ruby programs

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>