joachim,
@joachim@drupal.community avatar

#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

joachim,
@joachim@drupal.community avatar

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

mal3aby,

@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,
@joachim@drupal.community avatar

@mal3aby Yes, I use 'sandbox-xxx-description' for WIP and rough ideas and 'xxx-description' to push to a MR.

mal3aby,

@joachim Like this?

joachim,
@joachim@drupal.community avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • kavyap
  • Durango
  • cisconetworking
  • mdbf
  • InstantRegret
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • osvaldo12
  • Youngstown
  • ethstaker
  • slotface
  • rosin
  • thenastyranch
  • megavids
  • normalnudes
  • modclub
  • khanakhh
  • everett
  • tacticalgear
  • cubers
  • GTA5RPClips
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • lostlight
  • All magazines