joachim, 1 month ago #git commands I need, part 1: git related: show me all the branches that contain the same issue number in their name as the current branch
#git commands I need, part 1: git related: show me all the branches that contain the same issue number in their name as the current branch
git related
joachim, 1 month ago rel = "!perl -e '$branch = qx[git rev-parse --abbrev-ref HEAD]; ($issue) = $branch =~ m[\\b(\\d+)\\b]; print qx[git branch | grep $issue];'" Added to my git aliases repository: https://github.com/joachim-n/git-aliases-drupal
rel = "!perl -e '$branch = qx[git rev-parse --abbrev-ref HEAD]; ($issue) = $branch =~ m[\\b(\\d+)\\b]; print qx[git branch | grep $issue];'" Added to my git aliases repository: https://github.com/joachim-n/git-aliases-drupal
rel = "!perl -e '$branch = qx[git rev-parse --abbrev-ref HEAD]; ($issue) = $branch =~ m[\\b(\\d+)\\b]; print qx[git branch | grep $issue];'"
mal3aby, 1 month ago @joachim Are the issue numbers in question formatted in an obvious way that a script could easily detect? If so it shouldn't be too hard to add that as an extension...
@joachim Are the issue numbers in question formatted in an obvious way that a script could easily detect? If so it shouldn't be too hard to add that as an extension...
joachim, 1 month ago @mal3aby Yes, I use 'sandbox-xxx-description' for WIP and rough ideas and 'xxx-description' to push to a MR.
@mal3aby Yes, I use 'sandbox-xxx-description' for WIP and rough ideas and 'xxx-description' to push to a MR.
mal3aby, 1 month ago @joachim Like this?
@joachim Like this?
joachim, 1 month ago @mal3aby I haven't made it that elegant yet: https://github.com/joachim-n/git-aliases-drupal/blob/ebce4fb8506d80f529f625c2b9bba491b3dbc456/aliases.config#L24
@mal3aby I haven't made it that elegant yet: https://github.com/joachim-n/git-aliases-drupal/blob/ebce4fb8506d80f529f625c2b9bba491b3dbc456/aliases.config#L24
Add comment