Wireshark-commits: [Wireshark-commits] master-2.2 d7620ff: make-version.pl: make it work with git w

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Tue, 16 Aug 2016 18:00:04 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=d7620ff844ca3a9d2c4626fc10a4b2f1a9cb92c2
Submitter: Peter Wu (peter@xxxxxxxxxxxxx)
Changed: branch: master-2.2
Repository: wireshark

Commits:

d7620ff by Peter Wu (peter@xxxxxxxxxxxxx):

    make-version.pl: make it work with git worktrees
    
    When using git worktrees, the .git file is a regular file pointing to
    the original git repository. Accept this case too. Also ignore the fact
    that the original repo could be a git-svn repo, that is very unlikely.
    
    Example workflow (requires git 2.5):
    
        # Assume work in progress in current tree. Goal is to quickly do a
        # fix in another branch and publish the changes without interfering
        # with the WIP and without marking all files out of date (which
        # slows down re-compilation).
        git worktree add /tmp/wireshark-2.2 master-2.2
        pushd /tmp/wireshark-2.2        # go to temporary tree
        git cherry-pick -x COMMIT       # backport the fix
        git review                      # submit for review
        popd                            # go back to original tree
        rm -rf /tmp/wireshark-2.2 && git worktree prune     # cleanup
        # now continue working where you left work
    
    Change-Id: Iba3c723142d9cbd8b07e76647594b5699ecafc67
    Reviewed-on: https://code.wireshark.org/review/17002
    Reviewed-by: Jaap Keuter <jaap.keuter@xxxxxxxxx>
    Petri-Dish: Jaap Keuter <jaap.keuter@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
    Reviewed-by: Michael Mann <mmann78@xxxxxxxxxxxx>
    (cherry picked from commit 94c4329b8a0f64805e432af9ae89b7d624437a08)
    Reviewed-on: https://code.wireshark.org/review/17074
    Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
    

Actions performed:

    from  628734c   Fix UAT escape widths.
    adds  d7620ff   make-version.pl: make it work with git worktrees


Summary of changes:
 make-version.pl |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)