Re: persistent-https, url insteadof, and `git submodule`

2017-05-26 Thread Elliott Cable
34PM +0200, Dennis Kaarsemaker wrote: >> > On Fri, 2017-05-19 at 14:57 -0500, Elliott Cable wrote: >> > > Presumably this isn't intended behaviour? >> > >> > It actually is. git-submodule sets GIT_PROTOCOL_FROM_USER to 0, which >> > makes git no

persistent-https, url insteadof, and `git submodule`

2017-05-19 Thread Elliott Cable
Set up `persistent-https` as described in the [README][]; including the ‘rewrite https urls’ feature in `.gitconfig`: [url "persistent-https"] insteadof = https [url "persistent-http"] insteadof = http Unfortunately, this breaks `git submodule add`: > git submodule ad

Re: `git rev-parse --is-inside-work-tree` and $GIT_WORK_TREE

2016-03-31 Thread Elliott Cable
oh, wow, this got over my head *real* fast. Okay, 1. Yeah, my `$GIT_WORK_TREE` was def. an absolute path; I typed that example code without running it *precisely* that way (entirely my mistake! I'm so sorry for the confusion it caused, and all that typing you did!); if I remember correctly (not at

Re: `git rev-parse --is-inside-work-tree` and $GIT_WORK_TREE

2016-03-29 Thread Elliott Cable
On Tue, Mar 29, 2016 at 6:42 AM, Elliott Cable wrote: > So, I find this behaviour a little strange; I can't determine if it's > a subtle bug, or intentionally undefined/‘fuzzy’ behaviour ... Oh lord, it gets worse ... $ cd a-repo $ git rev-parse --is-inside-work-tree; git rev-p

`git rev-parse --is-inside-work-tree` and $GIT_WORK_TREE

2016-03-29 Thread Elliott Cable
So, I find this behaviour a little strange; I can't determine if it's a subtle bug, or intentionally undefined/‘fuzzy’ behaviour: $ cd a-repo/.git/ $ pwd /path/to/a-repo/.git $ git rev-parse --is-inside-work-tree false $ export GIT_WORK_TREE=/path/to/a-repo $ git rev-pa

`git rev-parse --git-dir` relative to current working directory?

2016-03-29 Thread Elliott Cable
So, `git help rev-parse` [mentions the following][rev-parse], as of 2.8.0: --git-dir Show $GIT_DIR if defined. Otherwise show the path to the .git directory. The path shown, when relative, is relative to the current working directory. However, when inside a symlinked repo

`format:%>` padding and `git log --graph`

2015-12-20 Thread Elliott Cable
I'm not sure what version the `%>` / `<|` / etc padding showed up in, but they're truly excellent for building beautiful one-line `git log` output. This may be a long-shot, but, unfortunately, these new formats sort of fall flat in the presence of `git log --graph`: The ‘pad until column’ feature,

Strange situation with --assume-unchanged and diff --find-copies-harder

2014-05-11 Thread Elliott Cable
So, I've spent some time in the #git channel on Freenode chatting about this, and we couldn't figure it out. I can't reproduce it in a newly-made repository, but it's reproducible with the repository I've been working in. > git status On branch Master Your branch is ahead of 'ec/Master

Re: [PATCH/RFC] rev-list: add --authorship-order alternative ordering

2013-06-06 Thread Elliott Cable
hink it'd be relevant. I feel like an idiot. Forgive me. I'll --signoff my next version of the patch. o7 On Thu, Jun 6, 2013 at 3:29 PM, Junio C Hamano wrote: > Elliott Cable writes: > >> On Tue, Jun 4, 2013 at 3:14 PM, Junio C Hamano wrote: >>> elliottcable writes

Re: [PATCH/RFC] rev-list: add --authorship-order alternative ordering

2013-06-06 Thread Elliott Cable
On Tue, Jun 4, 2013 at 3:14 PM, Junio C Hamano wrote: > elliottcable writes: >> Thus, I've added an --authorship-order version of --date-order, which relies >> upon the AUTHOR_DATE instead of the COMMITTER_DATE; this means that old >> commits >> will continue to show up chronologically in-order

Re: [PATCH/RFC] add --authorship-order flag to git log / rev-list

2013-06-06 Thread Elliott Cable
On Tue, Jun 4, 2013 at 2:53 PM, Junio C Hamano wrote: > After reading the subject alone, my reaction was "is this sorting > commits by the name of the author"? > > That is one of the expected natural reactions when people hear about > this option, which is not what you want. > > Perhaps naming it

Feature-request: Ordering `git log --graph` based on *author's* timestamp

2013-05-28 Thread Elliott Cable
I use a fairly complex `git-log` command involving `--date-order` to get an overview of my repository's status; but unfortunately, `--date-order` seems to use the *committer* date, not the *author* date. That means that each time I bring my topic branches up to date by rebasing them onto the curren