use lstrp() to strip prefix '/'

Change-Id: I4106d71e3a602daee8f09545b709ebb0c09f4e8a
merge docs from release-0.12 to devel branch

Change-Id: I69de1536457f4d39a2a23d3cecaf0421aca851b0
Clean up build options and group them, #595

Change-Id: I39494c869d1e9fcaa1fa7b89b1ab4e8b86e59eee
remove checking packaging dir in export module, fix #635

packaging dir will be checked while guessing spec file.

Change-Id: I31409b41372018637bbf1bba608dfff84805ebe9
add more import options, #594

--filters for filtering out e.g. scm directories
only for srpms and spec file options:
 --allow-same-version for re-importing the same version
 --native option for telling that "we're" the upstream
 --no-patch-import to prevent trying of importing patches
only for upstream tar ball options:
 --upstream-vcs-tag: setting a upstream git tag as the parent.

Change-Id: Ib90a0520e027f3e7df777e870e1172beb9e6e9d7
Add --no-patch-export options for export/build module, #594

with --no-patch-export, gbs does not create patches between
upstream and export-treeish, and and create tar ball from the
export-treeish instead of upstream branch

Change-Id: Iabad13eb75c425a104f20f507ae265801ab6aa3b
Check write permission of output dir to avoid traceback, #617

Change-Id: I8c343279b1d7791016c12aff2310e4c2d28c5443
Re-orgnize option help info of build module, #595

- Clean up examples
- Only five group left:
  * build configuration options
  * build env options
  * speed up building options
  * git-tree options
  * package selection options

Change-Id: Iba7ba18a990f188a7d58b8258d7bddb87b3d7658
Arch clean up, #654

Remove unsupportted arches, and only leave x86_64, i586, armv7l,
armv7hl, armv6l. ia32,i686,i386 are deprecated, but can be supportted
in gbs 0.13, and remove totally start from gbs 0.14

Update docs/GBS.rst, and use i586 for all examples and logs.

Change-Id: Ib7e936e5169cf725d40570da3e125a412eea3fde
fix misleading error handling while no spec file found

Change-Id: I7be2d57cd5c9e1c2756686cb9f43d4eb1a998fd0
Only check permission if outdir exists

- raise error if make dir fails
- only check permission of outdir if outdir exists

Change-Id: Id86dee7093d38bf8861d88bcf299cb902fac6da2
Implement clone subcommand

For cloning a git repository representing a package managed with gbs.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Implement pull subcommand

For updating a git repository representing a package managed with gbs.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Merge "Implement clone subcommand" into devel
Merge "Implement pull subcommand" into devel
cmd_pull: add --all cmdline option

Updates all remote-tracking branches that have identical name in the
remote.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Add --tag option for submit module to support group submission, #596

workflow of group submission:

gbs side:

1) one developer call 'gbs sr' to submit a patch, and he/she told
   other developer the tag name, created by gbs for this submission.
2) other developer use --tag to specified the same tag to submit
   other packages.

backend service:

Creating different OBS build project for different tag, and all submission
with the same tag would be submit to the same OBS project for building.

Release engineer:

All packages in the same OBS build project should be accept at the same
time

Change-Id: I04b838b0c9fc9cf469b814223b43f5bbcde9860e
Add missing --no-patch-export options for remotebuild

Change-Id: I9730b05c0de08e06b27e9c1b22408a8f72230e07
Don't break link structure if package is a link in OBS, #675

Change-Id: Iac1991d81f996e3f8f4d8368a9bafbea824af723
Add  tab completion file support

Change-Id: I1a122796d1374417d7e260b025303cd7223bcae4