[OE-core] [OE-Core][master][PATCH] standard.py: Provide an additional option for devtool reset
Mark Hatle
mark.hatle at windriver.com
Fri Aug 9 14:42:52 UTC 2019
On 8/9/19 3:27 AM, Alexander Kanavin wrote:
> On Fri, 9 Aug 2019 at 00:00, Mark Hatle <mark.hatle at windriver.com
> <mailto:mark.hatle at windriver.com>> wrote:
>
> May make sense to follow git as an example..
>
> devtool reset does what it already does..
>
> devtool reset --hard also does the removal of the existing source.
>
> But I've seen too many people blow away in progress source code without meaning
> to. Adding something like the --hard option would make it clear it's going to
> all go away.
>
>
> It might not be a coincidence, but in many years of using git, I do not remember
> finding 'git reset' useful even once, and I am still not sure what it does
> exactly. But 'git reset --hard' I use all the time.
I use them both myself. 'git reset' puts me back to a specific commit without
damaging any changes I've made in my source.. then I can re-evaluate and/or
manipulate them "again".
I would expect other development tools to work in a similar way. Reset me back
to where I was but don't break things I may have changed.. vs just reset it all
and lose my local changes.
Since devtool doesn't know if you have any local changes it should default to
not erasing anything.
My opinion at least
--Mark
> Alex
More information about the Openembedded-core
mailing list