-
Notifications
You must be signed in to change notification settings - Fork 293
Open
Labels
Description
Is your feature request related to a problem? Please describe.
I can use branch.reflog to see some recent states of my branch. I often would like to compare to those, but I can't do that without creating temporary branches, which feels like an artificial constraint.
Describe the solution you'd like
Say that I have called reflog and have the following output:
@unison/http/benchmarking> reflog
Below is a record of recent changes, you can use `reset #abcdef` to reset the current branch to a
previous state.
Tip: Use `diff.namespace 1 7` to compare between points in history.
Branch When Hash Description
1. @unison/http/benchmarking 5 days ago #vjv9o57b47 upgrade unison_codec_2_2_0 unison_codec_2_3_0
2. @unison/http/benchmarking 5 days ago #icj4n1i19j lib.install @unison/codec/releases/2.3.0
3. @unison/http/benchmarking 5 days ago #u6nvcvnp14 reset u6nvcvnp14b8fe838l5vt3hicljk10deun283510o9uqtiv8913fun...
I think that both of the following should be accepted:
> branch.diff #icj4n1i19j /benchmarking
> branch.diff 2 /benchmarking
I think that you should also be able to just pass the first argument to default the second to the current branch, but #6013 is tracking that.
Describe alternatives you've considered
Not supporting it. But is there a reason not to support it?
aryairani