[
https://issues.apache.org/jira/browse/HBASE-12207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14165490#comment-14165490
]
Mike Drob commented on HBASE-12207:
-----------------------------------
bq. {{echo $1|sed 's/ *$//'}}
I think this could be $\{1// *$/} instead.
The script gives a lot of warning messages (from git) if you have a dirty
workspace, it tried to do several checkouts and rebases for me. Maybe detect
that and abort if that starts to happen? This might be difficult to do though,
in which case I'm not really insistent on it.
> A script to help keep your Git repo fresh
> -----------------------------------------
>
> Key: HBASE-12207
> URL: https://issues.apache.org/jira/browse/HBASE-12207
> Project: HBase
> Issue Type: Improvement
> Components: documentation, scripts
> Reporter: Misty Stanley-Jones
> Assignee: Misty Stanley-Jones
> Attachments: HBASE-12207-v1.patch, HBASE-12207-v2.patch,
> HBASE-12207-v3.patch, HBASE-12207.patch
>
>
> I have a script that does a {code}git pull --rebase{code} on each tracking
> branch, and then attempts an automatic rebase of each local branch against
> its tracking branch. It also prompts you to delete local branches for HBASE-
> JIRAs that have been closed. I think this script may help to enforce good Git
> practices. It may be a good candidate to be included in dev-support/.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)