Re: Would a config var for --force-with-lease be useful?

2018-08-25 Thread Constantin Weißer
I think there are two aspects to using "force with lease". Firstly, you, a person aware of the option, using it. In this case I think an alias is very fitting, because you get quickly used to just typing `git pf` or so. Plus, you don't have the disadvantage you described: if you’re working on a

Paths handled differently by diff and checkout

2016-04-07 Thread Constantin Weißer
Hi, say I got a file called "asdf" somewhere in a subdirectory. I can do: git diff other_branch -- \*asdf and it will show me the diff *only* of that file (which is the only one that matches), so it works as expected. But if I do on the other hand: git checkout other_branch -- \*asdf I get: