Replies: 2 comments 3 replies
-
My immediate reaction is to pipe the SHAs to |
Beta Was this translation helpful? Give feedback.
1 reply
-
Another option I considered was using |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In GitLens, we are using
git log --all --date-order
to build the Graph visualization, but since we haven't been able to find a way to getgit log
to include all stashes we first callgit stash list
to get all the stash SHAs, and then use stdin to pipe them into thegit log --all --date-order --stdin
call. This works well for that usage, though it would be great to not have to pipe them in.But when we want to filter the Graph to a single branch (or HEAD), we can't just pipe the same stash SHAs into the
git log
call, as it will then pull in any commits required to make those stash SHAs "reachable".Is there a way (without looping over each SHA) to validate if those SHAs are reachable from a specific branch or HEAD? Or is there a way to get
git log
to not include them if they are not reachable?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions