This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
fire = !"f() { \ | |
local current_branch=$(basename \"$(git symbolic-ref HEAD)\"); \ | |
local new_branch=fire-${current_branch}-$(git config user.email)-$(date +%s) \ | |
local message; \ | |
if [ -z \"$1\" ]; then \ | |
message=\"fire commit from $current_branch\"; \ | |
else \ | |
message=\"$*\"; \ | |
fi; \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class E(BaseException): | |
def __new__(cls, *args, **kwargs): | |
return cls | |
def a(): yield | |
a().throw(E) |