mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-05 05:02:02 +02:00
Allow splitting win conditions in multiple parts
This commit is contained in:
parent
04e48a8bf2
commit
9cfbd9ff96
3 changed files with 25 additions and 19 deletions
levels/time-machine
|
@ -38,8 +38,11 @@ git branch -d main
|
|||
|
||||
[win]
|
||||
|
||||
# Is the child still there, and is the lion not hungry?
|
||||
{ git ls-tree --name-only -r HEAD | grep child; } && { git show HEAD:cage/lion | grep -v "very hungry"; }
|
||||
# Is the child still there?
|
||||
git ls-tree --name-only -r HEAD | grep child
|
||||
|
||||
# Is the lion not hungry?
|
||||
git show HEAD:cage/lion | grep -v "very hungry"
|
||||
|
||||
[congrats]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue