| 2024-11-01 |
|
cedd
| is this a typo in 'man git-rebase'? On line 124 it says the command 'git rebase --onto topicA~5 topicA~3 topicA' produces a rebase of 5-2-1-0. I was expecting it to produce 5-3-2-1-0. The 2nd commit in that list is excluded? | 00:02 |
|
gitinfo
| the git-rebase manpage is available at https://gitirc.eu/git-rebase.html | 00:02 |
| ← MIsAn left | 00:07 |
| → lacrymology joined | 00:09 |
|
larryv
| are you referring to this https://github.com/git/git/blob/master/Documentation/git-rebase.txt#L168-L187 | 00:10 |
| ← lacrymology left | 00:10 |
| → crossby1004 joined | 00:17 |
| ← Nixkernal left | 00:29 |
|
cedd
| larryv: yea | 00:43 |
|
larryv
| ok well "git rebase ... topicA~3 topicA" selects commits that are in topicA but are not reachable from topicA~3 | 00:47 |
|
| so topicA~3 itself is not rebased | 00:49 |
| → CycoCid joined | 00:49 |
|
cedd
| larryv: i see, thanks | 00:49 |
|
larryv
| np | 00:49 |
| ← Dreadnaught left | 00:51 |
| → Gary_Sinise joined | 00:52 |
| ← P1ro left | 00:52 |
| → P1ro joined | 00:53 |
| ← crossby1004 left | 00:57 |
| ← Turn_Left left | 01:01 |
| ← hdh left | 01:05 |
| → crossby1004 joined | 01:21 |
| → specing joined | 01:23 |
| ← w4 left | 01:38 |
| → Dreadnaught joined | 01:43 |
| ← pedahzur left | 01:44 |
| → thiago joined | 01:46 |
| ← CycoCid left | 01:46 |
| → w4 joined | 01:47 |
| ← gsi_ left | 01:50 |
| → gsi joined | 01:52 |
| ← ChmEarl left | 01:54 |
| → rainn92675560720 joined | 01:55 |
| → cabazon joined | 01:59 |
| ← aristaware443921 left | 02:00 |
| ← th3voic3 left | 02:00 |
| ← chiselfuse left | 02:00 |
| ← gildasio left | 02:00 |
| ← tolnanwo left | 02:00 |
| → th3voic3 joined | 02:00 |
| → tolnanwo joined | 02:00 |
| → gildasio joined | 02:00 |
| → chiselfuse joined | 02:00 |
| → aristaware443921 joined | 02:01 |
| ← ptrck5456 left | 02:02 |
| → ptrck5456 joined | 02:02 |
| ← n-st left | 02:03 |
| → n-st joined | 02:04 |
| ← Karyon left | 02:04 |
| → Karyon joined | 02:04 |
| ← insidesources left | 02:14 |
| ← crossby1004 left | 02:20 |
| ← mns left | 02:21 |
| ← davispuh left | 02:21 |
| ← TomyLobo left | 02:26 |
| ← hexnewbie left | 02:34 |
| → hexnewbie joined | 02:40 |
| ← lucasta left | 02:48 |
| → mns joined | 02:52 |
| ← gildasio left | 03:00 |
| → gildasio joined | 03:01 |
| ← cedd left | 03:02 |
| → Vonter joined | 03:03 |
| ← P1ro left | 03:16 |
| → P1ro joined | 03:17 |
| ← pks left | 03:20 |
| → pks joined | 03:21 |
| ← ferdna left | 03:25 |
| ← rainn92675560720 left | 03:43 |
| → hwpplayer1 joined | 03:44 |
| ← hwpplayer1 left | 03:47 |
| → hwpplayer1 joined | 03:51 |
| → uco3 joined | 03:51 |
| ← uco left | 03:52 |
| uco3 → uco | 03:52 |
| ← kurahaupo left | 04:02 |
| ← hwpplayer1 left | 04:05 |
| ← bloody left | 04:09 |
| ← dlh404 left | 04:12 |
| ← bket left | 04:13 |
|
sybariten
| Nothing obvious that is wrong with this line in a gitignore file, i presume? weechat/.weechat_julius/script/plugins.xml.gz | 04:14 |
| → bket joined | 04:15 |
|
sybariten
| in short - the aforementioned file shows up as modified when i do git status -uall . I've been trying to write a wildcard for it, but the file doesn't go away from the git status output. Then i figured i'd copy the exact line verbatim as git shows it (no wildcards, just this specific file), but it still doesnt disappear from the git status output. | 04:16 |
| → yuljk joined | 04:16 |
| ← skapata left | 04:20 |
| → rosco joined | 04:24 |
| → hwpplayer1 joined | 04:27 |
|
larryv
| is it already under version control | 04:28 |
| ← cpackham left | 04:33 |
| → alamak joined | 04:36 |
| pikapika_lunar → militantorc | 05:02 |
| ← mrpops2ko left | 05:18 |
| ← Gary_Sinise left | 05:18 |
| ← adamtajti left | 05:21 |
| → Guest66 joined | 05:22 |
| ← chuanshi left | 05:27 |
| → chuanshi joined | 05:28 |
| ← rosco left | 05:32 |
| ← chuanshi left | 05:35 |
| → chuanshi joined | 05:37 |
| ← g2anj left | 05:37 |
| → g2anj joined | 05:38 |
|
Guest66
| I think here is dumb question that I just don't know the correct terminology to find the answer with google: | 05:45 |
|
| I started with something like this: | 05:45 |
|
| A----B----C----E----G | 05:45 |
|
| \----D----F | 05:45 |
|
| then I ran git checkout <commit F> and git rebase -i <commit G>, dealt with merge conflicts, and got to somewhere like this: | 05:45 |
|
| A----B----C---ED----G----F | 05:45 |
|
| (marked <commit ED> to signify merge conflicts were dealt with there) | 05:45 |
|
| now, some other people have done work and I am ending up with something like this: | 05:45 |
|
| A----B----C----E-----G----H----I | 05:45 |
|
| A----B----C---ED----G----F | 05:45 |
|
| is there some way to merge only the new commits (commits H and I in the example) to my branch which currently has most recent commit of F? | 05:45 |
|
| when I try to rebase or merge I get all the merge conflicts that I already dealt with appearing again, which in this case is more than 60 | 05:45 |
|
| I also know with the above example it would be easy to cherry-pick commits H and I, but in my actual case there is more than 20 commits that would need to be cherry picked | 05:45 |
| ← omero left | 05:47 |
| ← Notgnoshi left | 05:48 |
| chuanshi → yxt | 05:49 |
| → omero joined | 05:49 |
| yxt → chuanshi | 05:50 |
| → YuGiOhJCJ joined | 05:51 |
|
larryv
| git rebase --onto F G I | 05:51 |
| ← thiago left | 05:51 |
|
larryv
| where G is the "original" G, not your G. | 05:52 |
|
ZLima12
| ^ | 05:52 |
|
Guest66
| thanks, seemed to do exactly what I wanted | 05:56 |
|
larryv
| great | 05:57 |
|
| Guest66: hm, although that actually changes the branch leading to I. not sure if that's what you want | 06:00 |
| → cedd joined | 06:00 |
| ← Guest66 left | 06:05 |
| ← cedd left | 06:05 |
| → PKDrinker joined | 06:08 |
| → Guest66 joined | 06:09 |
|
Guest66
| power outage | 06:11 |
|
| but doesnt matter to me now which commit is at the head, just that H/I/F are all there | 06:12 |
| ← smallville7123 left | 06:13 |
|
Guest66
| needed to fo git -f [branchname] [commit I] also | 06:13 |
| ← PKDrinker left | 06:22 |
| LionSkeleton → LadyLioness | 06:23 |
| ← Guest66 left | 06:24 |
| → adamtajti joined | 06:31 |
| → kale joined | 06:32 |
| → smallville7123 joined | 06:40 |
| ← FH_thecat left | 06:41 |
| ← cabazon left | 06:41 |
| ← alamak left | 06:43 |
| ← newpy left | 06:44 |
| ← aqtn left | 06:45 |
| ← uco left | 06:57 |
| → uco joined | 06:59 |
| → cedd joined | 07:01 |
| ← larryv left | 07:02 |
| ← JamesMowery43 left | 07:05 |
| ← cedd left | 07:07 |
| → xx joined | 07:21 |
| → mrpops2ko joined | 07:22 |
| ← mrpops2ko left | 07:25 |
| → user_oreloznog joined | 07:28 |
| → jfsimon1981_b joined | 07:29 |
| → rosco joined | 07:34 |
| ← Carwash0324_ left | 07:35 |
| → RiFo joined | 07:39 |
| ← Vonter left | 07:44 |
| → Lord_of_Life_ joined | 07:44 |
| ← Lord_of_Life left | 07:46 |
| Lord_of_Life_ → Lord_of_Life | 07:47 |
| → mrpops2ko joined | 07:50 |
| → obrien joined | 07:51 |
| ← rosco left | 07:53 |
| ← obrien left | 08:02 |
| → cedd joined | 08:03 |
| ← hwpplayer1 left | 08:07 |
| ← cedd left | 08:07 |
| ← memset left | 08:15 |
| → memset joined | 08:16 |
| → FH_thecat joined | 08:18 |
| → theyneversleep joined | 08:45 |
| → TinoDidriksen joined | 08:47 |
| → zloi_user joined | 08:50 |
| ← akibageek left | 08:55 |
| → akibageek joined | 08:56 |
| → jaredce joined | 09:03 |
| ← jaredce left | 09:07 |
| → iomari891 joined | 09:08 |
| → jaredce joined | 09:09 |
| → saavedro5 joined | 09:09 |
| ← saavedro left | 09:11 |
| saavedro5 → saavedro | 09:11 |
| ← tolnanwo left | 09:13 |
| → warmana joined | 09:15 |
| ← Betal left | 09:16 |
| → tolnanwo joined | 09:16 |
| ← specing left | 09:26 |
| ← mikap left | 09:26 |
| → mika joined | 09:26 |
| → t0mm13b_ joined | 09:36 |
| ← t0mm13b left | 09:36 |
| → stenno joined | 09:41 |
| ← stenno left | 09:41 |
| → stenno joined | 09:41 |
| → onizu joined | 09:46 |
| ← t0mm13b_ left | 09:58 |
| → t0mm13b joined | 09:59 |
| → cedd joined | 10:05 |
| ← cedd left | 10:09 |
| → epicout joined | 10:10 |
| → zmt00 joined | 10:14 |
| → zmt01 joined | 10:15 |
| ← swamp_ left | 10:16 |
| → jmd joined | 10:17 |
| ← peirik_ left | 10:19 |
| ← zmt00 left | 10:19 |
| → peirik_ joined | 10:19 |
| → dlh404 joined | 10:20 |
| ← rossome left | 10:27 |
| → rossome joined | 10:28 |
| ← rossome left | 10:33 |
| ← gnoo left | 10:35 |
| ← epicout left | 10:37 |
| ← ZenWalke1 left | 10:39 |
| → ZenWalker joined | 10:41 |
| → lacrymology joined | 10:41 |
| ← ueberall left | 10:44 |
| → ueberall joined | 10:46 |
| → cedd joined | 10:46 |
| ← cedd left | 10:51 |
| ← peirik_ left | 11:03 |
| → peirik_ joined | 11:04 |
| → Vonter joined | 11:14 |
| → rossome joined | 11:21 |
| ← rossome left | 11:24 |
| → rossome joined | 11:27 |
| ← rossome left | 11:33 |
| → Betal joined | 11:33 |
| → gnoo joined | 11:34 |
| → rossome joined | 11:37 |
| ← rossome left | 11:38 |
| → rossome joined | 11:45 |
| → monkfish joined | 11:50 |
| ← rossome left | 11:51 |
| → rossome joined | 11:53 |
| ← jmd left | 12:00 |
|
Betal
| what can cause a git pull to do a merge commit? I just wanted it to fetch/merge remote (actually it created a merge commit even with fetch and merge) | 12:04 |
|
| maybe because I have '[merge] ff = no' in git config | 12:05 |
|
| yes, `git merge --ff-only` did works | 12:06 |
| → cedd joined | 12:07 |
| ← gnoo left | 12:07 |
| ← peirik_ left | 12:08 |
| → peirik_ joined | 12:08 |
|
BtbN
| If you have ff = no configured, it'll create a merge commit, yes | 12:10 |
|
| My default has pretty much become to always pull --rebase. Don't think getting a merge commit is _ever_ what I want. | 12:10 |
| ← iomari891 left | 12:18 |
| ← m0viefreak left | 12:23 |
| ← akibageek left | 12:24 |
| → akibageek joined | 12:24 |
| → jmd joined | 12:25 |
| ← Non-ICE left | 12:30 |
| → gnoo joined | 12:32 |
| → blatant joined | 12:32 |
| ← lacrymology left | 12:41 |
| → Momentum joined | 12:43 |
| → davispuh joined | 12:43 |
|
Momentum
| Hi | 12:44 |
|
| is it normal that git asks for passphrase in `git pull` before asking you to specify remote and branch? | 12:45 |
|
| that seems a bit wrong | 12:46 |
|
bremner
| what command are you running? | 12:46 |
|
| (exactly) | 12:46 |
|
Momentum
| `git pull` | 12:47 |
|
bremner
| if you check the man page, you will see other arguments are required | 12:48 |
|
| oh, it depends on your configuration I guess | 12:48 |
|
Momentum
| yes, but it seems pointless to ask for passphrase before determining the branch to pull from, no? | 12:49 |
|
bremner
| Momentum: if you look in man git, there are various GIT_TRACE variables if you want to debug further | 12:49 |
|
gitinfo
| Momentum: the git manpage is available at https://gitirc.eu/git.html | 12:49 |
|
Momentum
| Thank you. I will look into that | 12:50 |
| ← YuGiOhJCJ left | 12:54 |
|
Momentum
| i guess it performs `git fetch` first | 12:58 |
|
| so maybe that makes sense | 12:58 |
| → rsx joined | 13:01 |
| → FreeBDSM joined | 13:07 |
|
skered
| We can use ^ on a commit to ref the pervious commit. Is there something like that for tags? | 13:12 |
|
| ex: git diff tag^..tag | 13:12 |
|
osse
| skered: no | 13:13 |
|
skered
| The diff between tag and last tag. | 13:13 |
|
| Dang. | 13:13 |
| ← jaredce left | 13:13 |
| ← TinoDidriksen left | 13:14 |
| → hwpplayer1 joined | 13:21 |
| ← blatant left | 13:22 |
| → newpy joined | 13:22 |
| → blatant joined | 13:22 |
| → jaredce joined | 13:26 |
|
gsish
| there is no order in tags, how is git supposed to know what your idea of "the previous tag" is? | 13:28 |
|
| the syntax above might be accepted, but most probably resolves the tags to commits and then uses the commit before that other commit that was tagged | 13:29 |
|
| (have guessed there, haven't tried it myself) | 13:29 |
| ← jaredce left | 13:30 |
|
osse
| that would be true | 13:33 |
| → bloody joined | 13:35 |
| → Left_Turn joined | 13:41 |
|
skered
| gsish: I would guess by date and branch The example is accepts but it would be the previous commit to whatever tag refs. | 13:45 |
|
| But given that it doesn't even exist I'm just talking about design | 13:45 |
|
| But maybe if something like this existed maybe it would be called called something different. | 13:46 |
| ← itsuki left | 13:46 |
| → jensen1 joined | 13:46 |
|
skered
| maybe it's called a release where it's just a tag but specific to a branch. | 13:47 |
| → memset_ joined | 13:47 |
|
skered
| ... and ther is git-release ... /me reads | 13:48 |
|
gsish
| ask three persons about their idea of a software release or whatever they use tags for, and you'll get at least four answers | 13:48 |
|
skered
| Seems like it's just a wrapper around commit, tag, and push? Not really it | 13:49 |
| → itsuki joined | 13:49 |
|
gsish
| the date of creating a release need not relate to what you consider related tags | 13:49 |
|
| imagine a team releases 1.0, 1.1, 2.0, 1.2, 2.1, etc -- what's their sort order? | 13:49 |
|
skered
| I would expect those to be in different branches. | 13:50 |
|
gsish
| listen to yourself :) this is _your_ idea, not everybody's | 13:50 |
| ← memset left | 13:51 |
|
| skered is the ideas man too. | 13:51 |
|
skered
| So it kinda works out. | 13:52 |
|
gsish
| you might script something along the lines of "the nearest commit in the specified commit's ancestry that was tagged, too" | 13:58 |
|
| have fun when you try this on graphs that are not strictly linear | 13:58 |
| → jaredce joined | 13:59 |
|
gsish
| it's much easier and more robust to expect the developer to just specify which points to address in the graph -- they should know, it's their project | 13:59 |
|
| not the tool's job to guess, and outsmart its users | 13:59 |
|
| another option could be to have a (user maintained) text file that lists references in the order that matches that user's idea of what their order is | 14:01 |
|
| some may call this a ChangeLog, still doesn't exactly match the "stable releases", "customer release", "in house test versions, 'to get released' unless unfit", etc situations | 14:03 |
| ← memset_ left | 14:03 |
| → memset joined | 14:03 |
|
gsish
| chronological order of release dates is rather weak a condition, and most probably wrong anyway | 14:03 |
|
| needs to reflect that a graph of potentially arbitrary complexity is involved | 14:04 |
|
| as far as DAGs go, only loops are forbidden, other degrees of complexity are free IIUC | 14:05 |
| ← jaredce left | 14:05 |
|
gsish
| it might be easier to convert all of the software developing world to have _one_ scheme of how to name releases | 14:06 |
| ← kale left | 14:06 |
|
gsish
| (and see the complexity of your "version number ordering" libraries, their multitude, and their limitations) | 14:06 |
| ← mingdao left | 14:09 |
| → mingdao joined | 14:10 |
| → jaredce joined | 14:16 |
| → cousteau joined | 14:17 |
|
cousteau
| Hi! Just installed git on a new machine. Why is the default editor nano instead of vi? Which option / env var controls this? I don't have any core.editor setting enabled. | 14:18 |
|
| (this is an Ubuntu-based distro so maybe they just went and modified git so that it uses nano by default) | 14:18 |
|
osse
| cousteau: is EDITOR set ? | 14:20 |
|
cousteau
| neither VISUAL, EDITOR, GIT_EDITOR | 14:20 |
|
| well, actually let me check | 14:20 |
|
| yep, unset | 14:21 |
|
| cousteau wanted to make sure they were not "set to the empty string" | 14:21 |
| ← jaredce left | 14:21 |
|
cousteau
| This is not the first thing I see this; I think it's an Ubuntu thing | 14:22 |
|
osse
| The hardcoded default editor can be set at compile time | 14:22 |
|
cousteau
| OTOH, that's a good thing because the default vi in Ubuntu is the "basic" vim which is rather unusable IME | 14:22 |
|
| (but I already installed the "full" one) | 14:23 |
|
| osse: makes sense. How can I check that? (Can I?) | 14:23 |
|
osse
| The source of the ubuntu package I suppose | 14:27 |
| → jaredce joined | 14:27 |
|
gsish
| distros invented the "alternatives" approach, check that | 14:28 |
|
| when it's Ubuntu, then install vim-full or what's the package's name these days, to get something useful | 14:29 |
|
osse
| I don't know how to see how a debian package is built | 14:29 |
|
gsish
| some programs reflect compile time choices in --version or similar output | 14:29 |
|
| would be surprised when git(1) assumes nano(1), quite the contrary | 14:30 |
|
cousteau
| osse: oh, was expecting there to be some option to make `git` spit out its default config | 14:30 |
|
osse
| cousteau: git config --edit I suppose will open it | 14:31 |
|
gsish
| would expect the distro to have "warped"/twisted the editor setup, because most users find nano more accessible | 14:31 |
|
cousteau
| gsish: that's what I was starting to suspect. A search for `nano` in the source for Ubuntu/Debian packages turned up nothing of interest. (Well, a search for nano(?!s|time), because damn, that was a lot of false matches...) | 14:32 |
| ← Echoz left | 14:32 |
|
cousteau
| osse: for example, gcc --version I think prints all the compile time options, showing all the --with and --disable and whatnot | 14:32 |
|
osse
| cousteau: found it. When Ubuntu packages Git they #define DEFAULT_EDITOR editor | 14:33 |
|
| which Git uses | 14:33 |
|
gsish
| when in vim then :version tells you how unusable the "tiny" package is and why you want vim-full | 14:33 |
|
cousteau
| gsish: ok, so basically, I would understand that git on ubuntu defaults to EDITOR=the_default_editor, and the_default_editor defaults to nano | 14:33 |
|
osse
| and editor is that alternatives thing that gsish mentioned (I think) | 14:33 |
|
cousteau
| osse: cool! | 14:33 |
|
gsish
| check whether man -k alternative gives a hint | 14:34 |
|
| these distros really have become pesky over time | 14:34 |
|
osse
| https://github.com/git/git/blob/master/editor.c#L17-L46 | 14:34 |
|
gsish
| so either install vim and have the alternative updated in the process | 14:34 |
|
| or when it was installed and the default was b0rked then fix it up again | 14:35 |
|
cousteau
| /debian/rules: DEFAULT_PAGER=pager DEFAULT_EDITOR=editor --> this? | 14:35 |
|
osse
| yes | 14:35 |
|
gsish
| update-alternatives | 14:36 |
|
| that shall also cover other software that also follows those redirections | 14:37 |
|
cousteau
| I suppose I might as well just go and do that system-wide | 14:37 |
|
| cousteau wondering whether he should do this system-wide or just change the core.editor option for git | 14:37 |
|
gsish
| and tell your distro how upset you are and don't like that feature which is not git's fault | 14:37 |
|
cousteau
| considering I'm the one and only user of this machine... | 14:38 |
|
gsish
| when you administer that machine then you probably use several accounts for that task (a guess) | 14:38 |
|
| you may think of yourself as one person, but you will be wearing different hats at different times | 14:39 |
|
cousteau
| gsish: the reason I've installed git on this machine (well, aside from the fact that it's a new laptop and I would've eventually done that anyway) was that I wanted to tweak a repo with the source of a package that eventually "trickles down" to Ubuntu, because I was annoyed with the behavior | 14:39 |
|
| it is QUITE an adventure | 14:39 |
|
| so yeah I'm not sure they'll listen | 14:39 |
|
| I also recently found a bug that was reported in 2019 | 14:39 |
|
| plus... I'm willing to believe that nano > vi, for low enough values of vi | 14:40 |
|
| (this distro comes with a vi, but it's a vi with a very low value) | 14:41 |
|
gsish
| that's the estimate of those who don't know vi, those who do know that vi > nano | 14:41 |
|
| probably the crippled vim that was referred to above | 14:41 |
|
| totally not representing what vim is about | 14:42 |
|
| can only serve as a bad example how not to do it (the distro packaging) | 14:42 |
|
cousteau
| gsish: have you ever tried "vim tiny"? | 14:42 |
| → crossby1004 joined | 14:43 |
|
gsish
| unvoluntarily, because you gotta do some editing before you get to install the full version that should have been there from the start | 14:43 |
|
| have you tried that :version thing? | 14:43 |
| ← dsimic left | 14:44 |
|
gsish
| notice that this is not a voice to eliminate nano, I feel that everybody should be free to use nano, assuming they use the nano(1) command to start it | 14:44 |
|
cousteau
| if you run `vi --version` it'll probably say it's the "Huge version", but the default in Ubuntu is the "Tiny version" (vim.tiny) | 14:44 |
|
| the "crippled" one you mentioned, I guess | 14:44 |
|
gsish
| the trouble comes from presenting something that is not vim to those who do invoke it, and to not ship a full vim because "it's too big" (getting this from those who have the space to ship huuuuge browsers and office suites) | 14:45 |
|
cousteau
| and... I'm no expert but the little experience I've had with vim.tiny before going "wtf is this crap" and installing the complete one leaves much to be desired | 14:45 |
| → dsimic joined | 14:45 |
|
gsish
| feels like installing "a different VCS" and calling it "a git alike" :) (to get back on topic) | 14:46 |
|
cousteau
| so even if I have some basic knowledge of vim, I've found THAT version to be less usable (or less easy to use) than nano. In that regard, I'd concede that nano may be > vi, for low enough values of vi (vi = vim.tiny) | 14:46 |
| ← mingdao left | 14:46 |
|
cousteau
| but, dunno, maybe installing the full vi should've also updated editor to vi, just as it did update vi to vim.basic (the huge one -- it's called "basic" for some reason) | 14:47 |
|
gsish
| see above, this is so not vim, it's a terrible abomination | 14:47 |
| → mingdao joined | 14:47 |
|
cousteau
| gsish: I'm pretty sure this abomination IS vim | 14:48 |
|
| just a very trimmed down version | 14:48 |
|
osse
| Fitter, happier. More productive. | 14:48 |
|
cousteau
| with lots of compile time flags disabled | 14:48 |
|
| it's just not what one thinks of when they say "vim", but it's still technically vim | 14:49 |
|
| It's maybe like expecting sh to be bash and then getting mad because it's dash or some other basic POSIX shell | 14:50 |
|
| And not like expecting sh to be bash or dash or another POSIX compilant shell, and encountering tcsh, and damn, that shell IS annoying (not POSIX compliant) | 14:50 |
|
gsish
| I wish you to spend a day in busybox, and then tell me "it's technically a Linux system" (as you are accustomed to by desktop use with lots of software installed) | 14:51 |
|
cousteau
| Anyway, you know what, editor is gonna be vim in this machine. I say so. | 14:51 |
| ← mingdao left | 14:51 |
|
gsish
| there is a difference, and you don't want to accept it when there is no real reason for the crippling | 14:51 |
| → Chaser joined | 14:52 |
|
gsish
| (busybox has its purpose, but everyday desktop use is not it) | 14:52 |
| → mingdao joined | 14:52 |
|
cousteau
| gsish: yeah, that's my point. Busybox may not be representative of what an average Linux is, but it IS still Linux (...it is, right?). As in "an element belonging to the set of Linux, but not a good representative of the average element of the set of Linux" | 14:53 |
| ← limon left | 14:54 |
|
osse
| update-alternatives --display editor | 14:54 |
|
cousteau
| so vim.tiny is not "not Vim" in the sense that it's a program that somehow emulates vim and was named "vim" by someone who hates users; it's just a very trimmed down version of the standard Vim, with lots of options disabled. | 14:54 |
|
| osse: oh, that is super interesting, once I managed to parse that monstrosity beyond my eyes | 14:55 |
| ← Xlusive left | 14:56 |
|
gsish
| maybe I was talking nonsense above, the package name appears to be "vim" and not "vim-full", and the installed program is named "vim.basic" :-O | 14:56 |
|
cousteau
| priority: nano: 40, vim.basic: 30, vim.tiny: 15, ed: -100 | 14:56 |
|
gsish
| and +1 to whoever picked that choice does hate his users | 14:56 |
|
cousteau
| so yeah... I stand corrected. This seems to be an issue of "someone thinks that nano > full vim", as you suggested | 14:57 |
|
osse
| pretty sure the alternatives are updated if you explicitly install a package | 14:57 |
|
gsish
| there may be a non-technical reason, running nano by default results in fewer support requests at the distributor's | 14:57 |
|
osse
| that's what happened here, anyway | 14:57 |
|
cousteau
| like, literally >, since 40 > 30 | 14:57 |
| → Xlusive joined | 14:58 |
|
cousteau
| osse: or rather, what DIDN'T happen because nano was still the greatest editor | 14:58 |
|
| (or DID happen, but had no effect) | 14:58 |
|
| bremner wonders what the git connection is here | 14:58 |
|
gsish
| anybody remembers SuSE's bragging about "the Nuremberg Windows" (inspired by feedback from one customer who liked how migrating didn't change a lot for him) | 14:58 |
|
cousteau
| bremner: I ran `git commit` and got nano and was like wtf | 14:59 |
|
| then I asked here how to know what git thinks is the default editor, to see if I could figure out why it was nano in my distro | 14:59 |
|
bremner
| you should talk to your distro | 14:59 |
|
| or configure core.editor | 14:59 |
|
cousteau
| obviously, this being a subject on favorite editors, it spiraled into an off-topic discussion on various vim flavors, nano, and poor choices by distros | 15:00 |
|
| and that's why we're discussing vim and distros in #git | 15:00 |
|
gsish
| well alternatives were pointed to in one of the earliest answers | 15:00 |
|
bremner
| so, asked and answered. and now just venting? | 15:00 |
|
cousteau
| bremner: I only claim like 40% of responsibility in this discussion | 15:01 |
| jensen1 → asze | 15:01 |
|
gsish
| took the OP some time to accept that answer, so ... no, appears to not have been answered by then when the venting started | 15:02 |
| ← berkay left | 15:02 |
| → lacrymology joined | 15:02 |
| → berkay joined | 15:05 |
| ← AnrDaemon left | 15:06 |
| ← afdee1c left | 15:06 |
|
cousteau
| gsish: no, you mentioned alternatives, which is kind of incomplete without explaining WHICH alternative I'm looking for (in this case, "editor"), then somehow suggested that installing the full version of vim would've automagically fixed this (which it could have, but it did not), and then quite a while later osse did find the original point where Ubuntu/Debian overwrite this default. Shortly after, you mentioned I should complain to my distro, and that | 15:07 |
|
| opened a Pandora box of opinions, me trying to "play devil's advocate" in my distro's name (but also kind of thinking you're right), and lots of speculation on what would be the "right" way to fix this. | 15:07 |
|
| it's all your fault, man :) | 15:07 |
|
| In any case, since osse eventually found the actual culprit (that someone at Ubuntu/Debian considers that nano is a 33% greater than vim.basic), I'll correct that unforgivable mistake locally and move on | 15:10 |
| → skapata joined | 15:13 |
| ← lacrymology left | 15:18 |
| → lacrymology joined | 15:18 |
| ← RiFo left | 15:19 |
| ← peirik_ left | 15:21 |
| → peirik_ joined | 15:21 |
| → afdee1c joined | 15:26 |
| → Non-ICE joined | 15:26 |
| → AnrDaemon joined | 15:26 |
| → wolfdale8335 joined | 15:29 |
| ← Chaser left | 15:29 |
| ← dostoyevsky2 left | 15:30 |
| ← wolfdale833 left | 15:31 |
| wolfdale8335 → wolfdale833 | 15:31 |
| → dostoyevsky2 joined | 15:32 |
| ← antranigv left | 15:34 |
| → Turn_Left joined | 15:35 |
| ← jmd left | 15:39 |
| ← Left_Turn left | 15:39 |
| → thiago joined | 15:39 |
| → ChmEarl joined | 15:48 |
| → specing joined | 15:48 |
| ← cedd left | 15:50 |
| → peirik__ joined | 16:02 |
| → pedahzur joined | 16:04 |
| ← peirik_ left | 16:04 |
| → Echoz joined | 16:05 |
| → antranigv joined | 16:07 |
| ← theyneversleep left | 16:10 |
| → epicout joined | 16:11 |
| → spare joined | 16:13 |
| ← thiago left | 16:16 |
| → thiago joined | 16:16 |
| ← thiago left | 16:17 |
| ← hbautista_ left | 16:23 |
| ← peirik__ left | 16:24 |
| → peirik_ joined | 16:24 |
| → thiago joined | 16:26 |
| → Chaser joined | 16:32 |
| ← blatant left | 16:33 |
| → blatant joined | 16:34 |
| → cluelessperson joined | 16:43 |
| ← blatant left | 16:44 |
| → blatant joined | 16:45 |
| ← cptaffe left | 16:46 |
| ← blatant left | 16:46 |
| → cptaffe joined | 16:46 |
| → blatant joined | 16:47 |
| ← stats4647 left | 17:00 |
| ← blatant left | 17:00 |
| ← gryffus_ left | 17:00 |
| → stats4647 joined | 17:00 |
| ← akibageek left | 17:01 |
| ← jaredce left | 17:02 |
| ← Chaser left | 17:05 |
| → ryuu9 joined | 17:06 |
| ← stats4647 left | 17:07 |
| ← militantorc left | 17:09 |
| → pikapika_lunar joined | 17:09 |
| ← ryuu left | 17:09 |
| ryuu9 → ryuu | 17:09 |
| → gryffus_ joined | 17:09 |
| pikapika_lunar → militantorc | 17:12 |
| ← militantorc left | 17:16 |
| → pikapika_lunar joined | 17:17 |
| → Left_Turn joined | 17:19 |
| ← warmana left | 17:19 |
| pikapika_lunar → militantorc | 17:20 |
| → stats4647 joined | 17:21 |
| ← Turn_Left left | 17:22 |
| jfsimon1981_b → jfsimon | 17:23 |
| → fling joined | 17:24 |
| ← thiago left | 17:24 |
| → thiago joined | 17:25 |
| → blatant joined | 17:25 |
| ← blatant left | 17:29 |
| ← cluelessperson left | 17:29 |
| → Chaser joined | 17:30 |
| → blatant joined | 17:35 |
| ← blatant left | 17:36 |
| → blatant joined | 17:39 |
| ← Chaser left | 17:43 |
| ← rsx left | 17:43 |
| → akibageek joined | 17:47 |
| → ___nick___ joined | 17:52 |
| ← blatant left | 17:56 |
| → blatant joined | 18:02 |
| ← thiago left | 18:02 |
| ← ___nick___ left | 18:02 |
| → thiago joined | 18:02 |
| ← blatant left | 18:04 |
| → ___nick___ joined | 18:04 |
| ← MyNetAz left | 18:06 |
| → MyNetAz joined | 18:07 |
| ← ___nick___ left | 18:08 |
| → ___nick___ joined | 18:10 |
| → afdee1c_ joined | 18:12 |
| ← monkfish left | 18:15 |
| ← afdee1c_ left | 18:23 |
| ← SuperLag left | 18:23 |
| → SuperLag joined | 18:24 |
| ← th3voic3 left | 18:24 |
| ← techtruth left | 18:25 |
| → lucasta joined | 18:25 |
| → th3voic3 joined | 18:25 |
| ← lacrymology left | 18:26 |
| → wootehfoot joined | 18:28 |
| → afdee1c_ joined | 18:30 |
| ← thiago left | 18:31 |
| → thiago joined | 18:31 |
| → rainn92675560720 joined | 18:35 |
| ← afdee1c_ left | 18:39 |
| ← zloi_user left | 18:39 |
| → JordiGHost joined | 18:45 |
|
JordiGHost
| Can git annotate (blame) each line with the commit message? | 18:45 |
|
| ChatGPT made up a `--show-summary` option when I asked it. | 18:47 |
|
| I love it when the machines give me false hope. | 18:47 |
|
| Hrm, when I told it that it made it up, it gave me a short but convoluted shell script. | 18:48 |
|
| Ah, c'est la guitte. | 18:48 |
| ← dermoth left | 18:48 |
| ← rainn92675560720 left | 18:53 |
| → dermoth joined | 18:54 |
| → Narrat joined | 18:55 |
|
specing
| JordiGHost: install tig, it does this | 18:57 |
|
| (shows commit when you press enter on the line) | 18:57 |
|
JordiGHost
| I wanted to give someone a quick command to do it, but git sucks too much for what I consider basic functionality. | 18:58 |
| → cedd joined | 18:58 |
| → jaredce joined | 19:00 |
| ← cedd left | 19:03 |
| ← cbreak left | 19:04 |
| ← jaredce left | 19:04 |
| → cedd joined | 19:05 |
| → Turn_Left joined | 19:05 |
| → Sampersand joined | 19:06 |
| ← JordiGHost left | 19:08 |
| ← Left_Turn left | 19:09 |
|
osse
| lol | 19:09 |
| → cbreak joined | 19:10 |
| → techtruth joined | 19:10 |
| → iomari891 joined | 19:11 |
|
Sampersand
| So, i'm trying to write a `git-branch-refs` command which prints out what `@{-1}` , `@{-2}` etc would refer to if i wrote `git switch @{-###}` . Currently, I'm getting my output like `git rev-parse --symbolic-full-name @{-{1..$max}}` , however, I want to stop early if fewer than `$max` entries are available. Is it possible to get the possible | 19:16 |
|
| number for which `@{-###}` is valid? | 19:16 |
| ← cousteau left | 19:16 |
| ← stats4647 left | 19:16 |
|
Sampersand
| I tried checking if the output equaled `@{-###}` (ie the input equals the output) but for some reason my history doesn't have `@{-71}` or `@{-72}`, but it does have 73 onwards | 19:17 |
| → cousteau joined | 19:17 |
|
Sampersand
| ideally i'd do `local gitmax=$(git somehow-find-max-value) ; [[ $max -ge $gitmax ]] && max=$gitmax` and then the rest of my logic is hunky dory | 19:19 |
| ← lucasta left | 19:20 |
| ← Jck_true left | 19:22 |
| → Jck_true joined | 19:22 |
| → Everything joined | 19:24 |
| → stats4647 joined | 19:28 |
| → theoceaniscool joined | 19:29 |
| → ferdna joined | 19:33 |
| ← Everything left | 19:34 |
| ← Sampersand left | 19:34 |
| → Sampersand joined | 19:34 |
| → Everything joined | 19:35 |
| → Sampersand26 joined | 19:35 |
| ← Sampersand left | 19:35 |
| ← stats4647 left | 19:40 |
| ← theoceaniscool left | 19:43 |
| → rolo joined | 19:44 |
| ← Sampersand26 left | 19:51 |
| → Sampersand joined | 19:52 |
| → theoceaniscool joined | 19:55 |
| → JordiGH joined | 19:56 |
| → limon joined | 19:57 |
| ← BigShip left | 19:59 |
| → Sampersand48 joined | 20:01 |
|
Sampersand
| Hi all, is there a way to get the amount of refs in git history? IE what's the maximum number I can do `git switch @{-NNN}` | 20:02 |
| → stats4647 joined | 20:02 |
| ← Sampersand48 left | 20:03 |
| → m0viefreak joined | 20:04 |
|
JordiGH
| Those aren't refs. | 20:05 |
|
| Branches are refs, but commits are commits. | 20:05 |
|
Sampersand
| oh what are they | 20:05 |
|
JordiGH
| Oh, wait, you want the depth of the reflog. I needed to check gitrevisions(7) again. | 20:06 |
|
| I guess that's `git reflog | wc -l`? | 20:07 |
|
Sampersand
| ah wow | 20:07 |
|
JordiGH
| I'm not sure that's accurate, does `git reflog` show everything? Mine seems to stop at 300. | 20:08 |
|
ikke
| git log --oneline -g --grep-reflog="checkout:" | 20:08 |
|
JordiGH
| Why omit resets, pulls, merges? | 20:09 |
|
| Oh, I see, because that duplicates some hashes. | 20:10 |
| → BigShip joined | 20:10 |
|
JordiGH
| jordi@eris:~/vcs/grist/saas$ git reflog | cut -f 1 -d' ' | sort -u | wc -l | 20:11 |
|
| 144 | 20:11 |
|
| jordi@eris:~/vcs/grist/saas$ git log --oneline -g --grep-reflog="checkout:" | wc -l | 20:11 |
|
| 97 | 20:11 |
|
| Shouldn't those match? | 20:11 |
|
ikke
| Sampersand was refering to @{-NNN} | 20:12 |
|
| with -NNN (negative), it refers only to checkouts | 20:12 |
|
Sampersand
| I see! So my idea is to have an equiv of `dirs` for git, so i can see all my recent checkouts. the problem is that `@{-N}` doesn't remove duplicates, so i was making my own function to remove dups. However, it's extremely slow for some because it needs to check for uniqueness, and i was hoping there was something that was already extant | 20:12 |
|
| here's what i have now: https://pastebin.com/5QRpr6E2 | 20:14 |
|
| (in zsh) | 20:14 |
| sco1_ → sco1 | 20:17 |
|
Sampersand
| is there something more efficient or already builtin? | 20:17 |
|
JordiGH
| I mean... the reflog? | 20:18 |
|
Sampersand
| what about it? | 20:19 |
|
JordiGH
| That shows you what you want. | 20:19 |
|
| You could --grep-reflog="checkout:" to limit it like ikke suggested. | 20:20 |
| → john_johnk joined | 20:21 |
|
Sampersand
| ah, so `@{-n}` is not some "stack" that's maintained somewhere in `.git`, but it actually dynamically determines it upon each invocation? | 20:21 |
| ← rolo left | 20:23 |
|
JordiGH
| Not really a stack, just a list of where you were. You don't really pop it. | 20:23 |
| → ferdna_ joined | 20:23 |
|
JordiGH
| It's in .git/logs/HEAD if you just care about HEAD (other refs are under .git/logs/refs) | 20:23 |
|
| dirs is a poor comparison because that is a stack. | 20:24 |
| ← _val__ left | 20:25 |
|
Sampersand
| i see | 20:25 |
| ← ferdna left | 20:25 |
|
Sampersand
| 'cause i frequently bounce between like three or four branches with long names, and `@{-N}` is a godsend. But sometimes i forget which one is which | 20:26 |
|
| but yeah, ok so getting a "unique" version of it is not really integral | 20:27 |
| ← memset left | 20:31 |
| → memset joined | 20:32 |
| ← afdee1c left | 20:35 |
| → zloi_user joined | 20:36 |
| → rolo joined | 20:39 |
| → afdee1c joined | 20:40 |
| → Juesto joined | 20:46 |
| ← rolo left | 20:46 |
| ← Juest left | 20:47 |
| Juesto → Juest | 20:47 |
| ← spare left | 20:52 |
| → Juesto joined | 20:53 |
| ← Juest left | 20:56 |
| Juesto → Juest | 20:56 |
| ← afdee1c left | 20:59 |
| → afdee1c joined | 21:01 |
| ← afdee1c left | 21:03 |
| ← ___nick___ left | 21:04 |
| → afdee1c joined | 21:08 |
| ← Narrat left | 21:11 |
| → afdee1c_ joined | 21:14 |
| ← thiago left | 21:24 |
| ← theoceaniscool left | 21:24 |
|
osse
| dare i suggest tsb-completing the one youcwa | 21:30 |
| ← Traneptora left | 21:30 |
|
osse
| God dammit | 21:31 |
|
| Tab-completing the one you want | 21:31 |
| ← hwpplayer1 left | 21:35 |
| ← adamtajti left | 21:36 |
| → Traneptora joined | 21:38 |
| ← john_johnk left | 21:38 |
| → hwpplayer1 joined | 21:38 |
|
b0nn
| lol, tab complete in IRC to stop typos :P | 21:40 |
| → kale joined | 21:40 |
| ← mika left | 21:42 |
| → mika joined | 21:42 |
| ← peirik_ left | 21:43 |
| → peirik_ joined | 21:43 |
| → marc2377 joined | 21:43 |
| → john_johnk joined | 21:48 |
| ← Everything left | 21:49 |
| ← marc2377 left | 21:51 |
| ← iomari891 left | 21:55 |
|
Lore
| osse, I have connected ASPell to WeeChat IRC client here, and configured it in a way it highlights typos. | 21:55 |
| → peirik__ joined | 21:55 |
|
Lore
| i.e. https://linux.die.net/man/1/aspell | 21:56 |
|
| osse, for example, a typoo and it there are now 5 suggestions at the top right corner configured to be shown: https://i.imgur.com/jV1mNyI.png | 21:59 |
| ← peirik_ left | 21:59 |
|
Lore
| s/it // | 21:59 |
|
| It doesn't help with logical mistakes though ^^" | 22:00 |
| ← zloi_user left | 22:01 |
| ← Sampersand left | 22:03 |
| → lucasta joined | 22:03 |
| → forgotmynick joined | 22:05 |
| → thiago joined | 22:06 |
|
b0nn
| Lore: I have a thing in irssi where I can <Ctrl-z> to review what I am about to send and check for typos, - I still typo the hang out everything I send | 22:07 |
| ← tolnanwo left | 22:13 |
| ← limon left | 22:17 |
| → limon joined | 22:19 |
| ← khrbtxyz left | 22:26 |
| → tolnanwo joined | 22:26 |
| ← kale left | 22:26 |
| → Left_Turn joined | 22:28 |
| ← hwpplayer1 left | 22:28 |
| ← Turn_Left left | 22:31 |
| ← memset left | 22:31 |
| → memset joined | 22:32 |
| ← hexnewbie left | 22:34 |
| ← mrpops2ko left | 22:35 |
| ← stats4647 left | 22:36 |
| ← benaldo left | 22:45 |
| → benaldo joined | 22:46 |
| → stats4647 joined | 22:55 |
| → mrpops2ko joined | 22:56 |
| ← user_oreloznog left | 22:59 |
| ← stats4647 left | 22:59 |
| → Gary_Sinise joined | 23:00 |
| ← warthog9 left | 23:02 |
| → warthog9 joined | 23:05 |
| ← mrpops2ko left | 23:05 |
| → gryffus joined | 23:08 |
| ← gryffus_ left | 23:08 |
| ← xx left | 23:12 |
| → zloi_user joined | 23:12 |
| ← sentriz left | 23:13 |
| → Juesto joined | 23:17 |
| ← Juest left | 23:19 |
| Juesto → Juest | 23:19 |
| → stats4647 joined | 23:19 |
| → mrpops2ko joined | 23:22 |
| ← peirik__ left | 23:22 |
| → peirik_ joined | 23:22 |
| ← stats4647 left | 23:24 |
| ← stenno left | 23:34 |
| ← bn_work left | 23:34 |
| → hbautista_ joined | 23:35 |
| ← hbautista_ left | 23:36 |
| ← afdee1c_ left | 23:36 |
| ← th3voic3 left | 23:36 |
| → th3voic3 joined | 23:38 |
| ← mrpops2ko left | 23:49 |
| → stats4647 joined | 23:51 |
| ← stats4647 left | 23:55 |
| → rosco joined | 23:56 |
| ← FreeBDSM left | 23:58 |
| ← seanh left | 23:58 |
| → cdown joined | 23:58 |
| → seanh1 joined | 23:59 |