Skip to content
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

Add commit hash functionality to dolt ls --verbose #1564

Closed
VinaiRachakonda opened this issue Apr 19, 2021 · 3 comments
Closed

Add commit hash functionality to dolt ls --verbose #1564

VinaiRachakonda opened this issue Apr 19, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@VinaiRachakonda
Copy link
Contributor

Currently dolt ls --verbose works as follows:

It lists the table name, the table hash, and the number of rows. We should add in the commit hash that most recently affected the table

@AmirAktify
Copy link

This would be great! One alternate way to do it that mirrors git's syntax. In git you can do git log -p filename. In dolt speak, that would be dolt log -p tablename.

Whichever is more intuitive to implement or preferred by users would work for me. Either variant would be very useful.

@VinaiRachakonda
Copy link
Contributor Author

@AmirAktify We recently merged this feature into master. You can do dolt log <table-name> to produce a log that defines which commits affected the particular table. To get the most recent one this is all you need to do

dolt log -n 1 <table_name>

We do release every Monday so you can either wait till then or build from master.

@zachmu
Copy link
Member

zachmu commented Aug 12, 2021

This is in the latest release, closing out

@zachmu zachmu closed this as completed Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants