Fix typo
Clean up doc.
Fix typo
+ _get_version_from_old_PKGBUILD

This is to read the first variable "pkgver" from the traditional PKBUILD
import: create an intial tag from $pkgver in PKGBUILD
Not support 1 number when reading version from PKGBUILD

This is bc our system does not support 1 number in version string.
Support that kind of version string will cause buggy tags in git repo
+ link to official repository
Fix typo
_get_git_branch converts HEAD to branch name
Clean up code

We use new behavior of _get_git_branch that converts HEAD to
branch name, and also check if branch name is valid
+ _fix_the_1st_tag_on_package_branch

This function is to fix the first tag on a package branch,
that indicates the version of the software we import from Arch
Fix errors when checking status of PIPE

The variable PIPESTATUS is only available in a very shortime.

* Valid: [[ PIPESTATUS[0] -eq 0 && PIPESTATUS[1] -eq 0 ]]
* Invalid: ... && [[ PIPESTATUS[1] -eq 0 ]]

We need to use an util function to check PIPESTATUS (array),
or we need to get all PIPE statues in a single test [[ .. ]]
Fix the first tag after importing the package
Support 4 number (x.y.z.t) in package version string

This is to support at least 28 packages in ABS. E.g, git. We
have no way to avoid this problem. The world is too messy
Fix bug in _get_git_commits_between_two_points

The bug: If we use HEAD HEAD, there is actually no commit found;
however, bc the function still prints a "echo", the next func.
will see that there is (nil) commit, and the counter will see 1.

This bug is found when building a package whose the HEAD is on
the latest tag: the (s-makepkg) returns 2 in release-number (should 1)

To fix the bug, we will (grep) to get all valid tags. Bc (grep)
has no problem with EOF character, and (grep) even generates
an EOF for us, we will have a correct output. Please note that
bc. we do not use (silent) option for (grep), the grep return code
would be: 0 (line found) 1 (no line found) or 2 (grep error).
Both values 0 and 1 are valid in our case, bc. the purpose
is to use (grep) for output filtering, not to find something