
    l:i                     Z    d dl Z d dlmZ d dlmZ d dlmZ ed        Zeed               Zy)    N)shell)git_support)eagerc                 >    d| j                   v xr d| j                   v S )Nzfatal: A branch named 'z' already exists.)output)commands    V/var/www/html/bot/venv/lib/python3.12/site-packages/thefuck/rules/git_branch_exists.pymatchr
      s$    %7 6#w~~57    c              #      K   t        j                  d| j                        d   }|j                  dd      }ddgddgddgddgd	gg}|D ]%  }t	        j
                  | j                  |       ' y w)
Nz,fatal: A branch named '(.+)' already exists.r   'z\'zgit branch -d {0}zgit branch {0}zgit checkout -b {0}zgit branch -D {0}zgit checkout {0})refindallr   replacer   and_format)r   branch_namenew_command_templatesnew_command_templates       r	   get_new_commandr      s      **7IIJLK%%c51K13CD13HI13CD13HI01	3
 !6 Djj./66{CCDs   A1A3)	r   thefuck.shellsr   thefuck.specific.gitr   thefuck.utilsr   r
   r    r   r	   <module>r      sC    	   ,  7 7
 
D  
Dr   