-
-
Notifications
You must be signed in to change notification settings - Fork 603
implement dolt_branch_status()
#9122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@coffeegoddd DOLT
|
go/libraries/doltcore/sqle/dtablefunctions/dolt_diverge_table_function.go
Show resolved
Hide resolved
|
@coffeegoddd DOLT
|
macneale4
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good. I'm not sure why the test I pushed fails, but it must have something to do with the commit walking.
go/libraries/doltcore/sqle/dtablefunctions/dolt_branch_status_table_function.go
Outdated
Show resolved
Hide resolved
go/libraries/doltcore/sqle/dtablefunctions/dolt_branch_status_table_function.go
Outdated
Show resolved
Hide resolved
go/libraries/doltcore/sqle/dtablefunctions/dolt_branch_status_table_function.go
Show resolved
Hide resolved
|
@macneale4 DOLT
|
|
@coffeegoddd DOLT
|
macneale4
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing I think you can simplify.
go/libraries/doltcore/sqle/dtablefunctions/dolt_branch_status_table_function.go
Outdated
Show resolved
Hide resolved
macneale4
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
~.
Ya...___|__..aab . .
Y88a Y88o Y88a ( )
Y88b Y88b Y88b `.oo'
:888 :888 :888 ( (`-'
.---. d88P d88P d88P `.`.
/ .-._) d8P'"""|"""'-Y8P `.`.
( (`._) .-. .-. |.-. .-. .-. ) )
\ `---( O )( O )( O )( O )( O )-' /
`. `-' `-' `-' `-' `-' .' CJ
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This PR implements
dolt_branch_status(<base_branch>, <feature_branch1>, <feature_branch2>, ...).The function compares
base_branchagainst each of the feature branches and outputs a table that lists how many commits ahead and behind base branch.Additionally, this PR contains some cleanup/refactoring.
addresses: #9090