| 2023-12-28 |
| ← Sasazuka left | 00:01 |
| ← bambanxx left | 00:03 |
| → bambanxx joined | 00:05 |
| ← epony left | 00:07 |
| → epony joined | 00:09 |
| ← lostlazy left | 00:19 |
| → miigotu joined | 00:20 |
| ← jklfds left | 00:20 |
| → Sasazuka joined | 00:20 |
| → lostlazy joined | 00:24 |
| ← bambanxx left | 00:25 |
| ← lostlazy left | 00:30 |
| → jklfds joined | 00:32 |
| ← zetef left | 00:32 |
| → zetef joined | 00:33 |
| ← zetef left | 00:33 |
| → lostlazy joined | 00:33 |
| ← juergh left | 00:34 |
| → bambanxx joined | 00:34 |
| → juergh joined | 00:34 |
| ← mingdao left | 00:37 |
| → mingdao joined | 00:42 |
| ← bambanxx left | 00:47 |
| ← wootehfoot left | 00:49 |
| ← liefer396 left | 00:50 |
| → keypushe- joined | 00:56 |
| ← keypusher left | 00:57 |
| keypushe- → keypusher | 00:59 |
| → Lord_of_Life_ joined | 01:17 |
| ← Lord_of_Life left | 01:18 |
| Lord_of_Life_ → Lord_of_Life | 01:18 |
| ← Leonarbro left | 01:24 |
| → peirik_ joined | 01:29 |
| → peirik- joined | 01:31 |
| → peirik__ joined | 01:34 |
| ← peirik_ left | 01:35 |
| ← jklfds left | 01:35 |
| ← peirik- left | 01:37 |
| ← peirik__ left | 01:41 |
| → zumba_addict joined | 01:41 |
| → peirik_ joined | 01:42 |
| ← zumba_addict left | 01:42 |
| → zumba_addict joined | 01:43 |
| → reset joined | 01:45 |
| → jklfds joined | 01:48 |
| → nivag_2c joined | 01:52 |
| ← thiago left | 01:53 |
| ← m_antis left | 02:10 |
| → rgrinberg joined | 02:13 |
| ← gchound left | 02:13 |
| → m_antis joined | 02:25 |
| ← m_antis left | 02:29 |
| ← oriba left | 02:42 |
| → dreamLogic joined | 02:42 |
| ← nivag_2c left | 02:43 |
| ← Guest146856 left | 02:47 |
| ← navi left | 02:50 |
| ← insidesources left | 02:50 |
| ← jklfds left | 02:51 |
| → jklfds joined | 02:55 |
| ← FH_thecat left | 03:00 |
| ← jklfds left | 03:02 |
| → m_antis joined | 03:03 |
| → rosco joined | 03:05 |
| ← m_antis left | 03:10 |
| → finn_elija joined | 03:26 |
| ← FinnElija left | 03:26 |
| finn_elija → FinnElija | 03:26 |
| → nate4 joined | 03:27 |
| → igemnace joined | 03:28 |
| ← FinnElija left | 03:29 |
| → FinnElija joined | 03:30 |
| → jklfds joined | 03:31 |
| ← nate4 left | 03:32 |
| ← donofrio left | 03:35 |
| → FH_thecat joined | 03:39 |
| ← lunatiq left | 03:40 |
| ← defec7ed left | 03:42 |
| → lunatiq joined | 03:44 |
| ← lunatiq left | 03:44 |
| → lunatiq joined | 03:44 |
| ← weko left | 03:47 |
| ← derpydoo left | 03:51 |
| ← gsi left | 03:56 |
| → weko joined | 03:57 |
| → gsi joined | 03:58 |
| → lemuria joined | 04:03 |
| ← rosco left | 04:07 |
| → crabbedhaloablut joined | 04:11 |
| ← Guest1235 left | 04:16 |
| ← bindu left | 04:24 |
| → bindu joined | 04:25 |
| → donofrio joined | 04:33 |
| ← jklfds left | 04:37 |
| → Guest1235 joined | 04:40 |
| → defec7ed joined | 04:49 |
| ← defec7ed left | 04:53 |
| ← Vonter left | 04:55 |
| → Vonter joined | 04:56 |
| → zoorat joined | 05:00 |
| ← ZMarkGC left | 05:01 |
| ← krushia left | 05:04 |
| → defec7ed joined | 05:05 |
| → jklfds joined | 05:07 |
| ← igemnace left | 05:09 |
| → igemnace joined | 05:10 |
| ← jklfds left | 05:12 |
| → ZMarkGC joined | 05:19 |
| → nivag joined | 05:19 |
| ← tjr left | 05:20 |
| ← igemnace left | 05:25 |
| ← dreamLogic left | 05:25 |
| ← nivag left | 05:26 |
| ← Jck_true left | 05:26 |
| → Jck_true joined | 05:27 |
| → jklfds joined | 05:27 |
| ← jklfds left | 05:32 |
| → nivag joined | 05:33 |
| → jklfds joined | 05:45 |
| ← troyt left | 05:46 |
| → masoudd_ joined | 05:47 |
| → nanobot567 joined | 05:51 |
| ← nivag left | 05:54 |
| ← nanobot567 left | 05:59 |
| ← tomboy64 left | 06:04 |
| → tomboy64 joined | 06:04 |
| → nivag joined | 06:07 |
| ← donofrio left | 06:10 |
| → troyt joined | 06:13 |
| → xdminsy joined | 06:13 |
| ← PantelicGR left | 06:14 |
| ← szkl left | 06:23 |
| ← Jck_true left | 06:29 |
| → Jck_true joined | 06:30 |
| → hbautista joined | 06:37 |
| → rosco joined | 06:40 |
| ← zumba_addict left | 06:44 |
| chillxmas → grpc | 06:47 |
| ← jklfds left | 06:49 |
| ← hbautista left | 06:50 |
| ← zoorat left | 06:50 |
| ← rosco left | 06:55 |
| ← din0 left | 06:57 |
| ← nivag left | 06:58 |
| → jklfds joined | 07:01 |
| ← bket left | 07:03 |
| → bket joined | 07:06 |
| ← jklfds left | 07:07 |
| ← weko left | 07:08 |
| → weko joined | 07:09 |
| ← distant left | 07:11 |
| ← Sasazuka left | 07:13 |
| → jklfds joined | 07:19 |
| ← jklfds left | 07:24 |
| → jklfds joined | 07:28 |
| → nate4 joined | 07:29 |
| ← nate4 left | 07:34 |
| → jmd joined | 07:34 |
| ← jklfds left | 07:41 |
| → Maxb0tbeep joined | 07:41 |
| → jklfds joined | 07:52 |
| → Sasazuka joined | 08:01 |
| → john_johnk joined | 08:01 |
| ← Jck_true left | 08:04 |
| → AAI4ZW joined | 08:04 |
| → Jck_true joined | 08:05 |
| ← skapata left | 08:06 |
| → Jck_true8 joined | 08:08 |
| ← Maxb0tbeep left | 08:08 |
| ← Jck_true left | 08:09 |
| Jck_true8 → Jck_true | 08:09 |
| → fdan joined | 08:10 |
| ← Betal left | 08:11 |
| ← jas-maelstrom left | 08:14 |
| ← Jck_true left | 08:15 |
| → Jck_true joined | 08:16 |
| → StucKman84 joined | 08:19 |
| ← Quack left | 08:23 |
| → Quack joined | 08:25 |
| → dsrt^ joined | 08:25 |
| → MGF_Fabio joined | 08:25 |
| ← MGF_Fabio left | 08:27 |
| → MGF_Fabio joined | 08:28 |
| ← fdan left | 08:30 |
| → sanTmue joined | 08:41 |
| ← khrbtxyz left | 08:46 |
| → khrbtxyz joined | 08:47 |
| ← Sasazuka left | 08:55 |
| ← sanTmue left | 08:55 |
| → YuGiOhJCJ joined | 08:56 |
| ← masoudd_ left | 08:57 |
| ← mkosmo2 left | 08:59 |
| → mkosmo2 joined | 09:04 |
| ← JanC left | 09:06 |
| → [codemonkey] joined | 09:11 |
| → JanC joined | 09:14 |
| → coot joined | 09:14 |
| → wootehfoot joined | 09:15 |
| → masoudd_ joined | 09:17 |
| ← Quack left | 09:17 |
| → jas-maelstrom joined | 09:18 |
| → m_antis joined | 09:19 |
| → Quack joined | 09:23 |
| → szkl joined | 09:23 |
| → xzed joined | 09:26 |
| → rty joined | 09:26 |
| ← peirik_ left | 09:28 |
| → mobidrop joined | 09:30 |
| ← rgrinberg left | 09:36 |
| → lacrymology joined | 09:36 |
| → rgrinberg joined | 09:44 |
| ← miigotu left | 09:53 |
| → miigotu joined | 09:53 |
|
j416
| enrh: haha. another time then. | 09:57 |
| ← m_antis left | 09:58 |
| ← Quack left | 10:02 |
| ← farzat left | 10:02 |
| ← wootehfoot left | 10:06 |
| → Quack joined | 10:06 |
| ← StucKman84 left | 10:09 |
| → igemnace joined | 10:12 |
| → m_antis joined | 10:16 |
| ← hussein1 left | 10:20 |
| → hussein1 joined | 10:21 |
| ← rgrinberg left | 10:22 |
| → sahil_ joined | 10:24 |
| ← Quack left | 10:26 |
| ← YuGiOhJCJ left | 10:27 |
| ← sahil_ left | 10:28 |
| → peirik_ joined | 10:29 |
| → Quack joined | 10:29 |
| ← Quack left | 10:39 |
| → dizo joined | 10:42 |
| → Quack joined | 10:43 |
| ← xdminsy left | 10:43 |
| → xdminsy joined | 10:44 |
| → duxsco joined | 10:53 |
| ← miigotu left | 10:53 |
| → miigotu joined | 10:53 |
| ← hussein1 left | 10:56 |
| → hussein1 joined | 10:56 |
| ← Quack left | 10:56 |
| ← lacrymology left | 10:56 |
| → zoorat joined | 11:01 |
| → Quack joined | 11:15 |
| ← xx left | 11:15 |
| → xx joined | 11:18 |
| ← dsimic left | 11:25 |
| ← hyperair left | 11:25 |
| → thiago joined | 11:26 |
| → BlessJah joined | 11:27 |
| → dsimic joined | 11:27 |
| → mane joined | 11:30 |
| ← Quack left | 11:30 |
| → nate4 joined | 11:31 |
| → weko_ joined | 11:33 |
| ← xzed left | 11:33 |
| → hyperair joined | 11:34 |
| ← nate4 left | 11:35 |
| ← weko left | 11:36 |
| ← masoudd_ left | 11:37 |
| → Quack joined | 11:38 |
| → peirik- joined | 11:41 |
| ← peirik_ left | 11:44 |
| ← zoorat left | 11:47 |
| ← igemnace left | 11:47 |
| → bambanxx joined | 11:48 |
| ← Quack left | 11:50 |
| ← peirik- left | 11:54 |
| → lacrymology joined | 11:57 |
| ← theobjectivedad left | 11:58 |
| → theobjectivedad joined | 11:59 |
| → igemnace joined | 12:04 |
| → masoudd_ joined | 12:04 |
| ← CrunchyFlakes left | 12:13 |
| → Quack joined | 12:16 |
| → CrunchyFlakes joined | 12:17 |
| → fdan joined | 12:18 |
| ← miigotu left | 12:20 |
| → miigotu joined | 12:22 |
| → rgrinberg joined | 12:26 |
| ← Quack left | 12:26 |
| ← duxsco left | 12:32 |
| ← bambanxx left | 12:38 |
| → fling_ joined | 12:39 |
| → bambanxx joined | 12:39 |
| ← fling left | 12:40 |
| → Quack joined | 12:43 |
| ← dsrt^ left | 12:47 |
| fling_ → fling | 12:47 |
| ← BlessJah left | 12:48 |
| → rsx joined | 12:48 |
| → BlessJah joined | 12:50 |
| → rainystorm joined | 12:52 |
| ← Quack left | 12:52 |
| → donofrio joined | 12:55 |
| → peirik_ joined | 12:57 |
| → sa0 joined | 12:57 |
| ← peirik_ left | 12:57 |
| ← gildasio left | 12:58 |
| → navi joined | 12:58 |
| → gildasio joined | 12:58 |
| → h-erectus joined | 12:59 |
| → realies joined | 12:59 |
| ← _sa0sin_ left | 13:00 |
| ← john_johnk left | 13:05 |
| ← fling left | 13:06 |
| → fling joined | 13:06 |
| → Quack joined | 13:10 |
| ← bambanxx left | 13:13 |
| → bambanxx joined | 13:16 |
| → weedmic joined | 13:18 |
| → dnh joined | 13:21 |
| → peirik_ joined | 13:21 |
| → dsrt^ joined | 13:26 |
| ← lacrymology left | 13:29 |
| ← fdan left | 13:30 |
| → lacrymology joined | 13:30 |
| jfsimon1981 → jfsimon | 13:30 |
| → epicout joined | 13:31 |
| ← epicout left | 13:31 |
| → epicout joined | 13:31 |
| → nivag_2c joined | 13:32 |
| ← strk left | 13:40 |
| ← szkl left | 13:42 |
| → cdown joined | 13:42 |
| ← h-erectus left | 13:49 |
| ← Quack left | 13:50 |
| → Artea joined | 13:50 |
| → derpydoo joined | 13:51 |
| ← peirik_ left | 13:51 |
| → lucasta joined | 13:54 |
| → Quack joined | 13:54 |
| → john_johnk joined | 13:54 |
| ← epony left | 14:04 |
| ← Jck_true left | 14:08 |
| → Jck_true joined | 14:08 |
| ← Night0wl3 left | 14:08 |
| → Night0wl39 joined | 14:08 |
| ← weedmic left | 14:11 |
| ← bambanxx left | 14:12 |
| ← nivag_2c left | 14:13 |
| ← jmd left | 14:16 |
| → cbreak_ joined | 14:16 |
| ← cbreak left | 14:18 |
| → duxsco joined | 14:18 |
| → jmd joined | 14:21 |
| → nivag_2c joined | 14:26 |
| ← Traneptora left | 14:26 |
| ← Night0wl39 left | 14:34 |
| ← rgrinberg left | 14:34 |
| ← Quack left | 14:34 |
| → Traneptora joined | 14:37 |
| → Quack joined | 14:39 |
| → Night0wl3 joined | 14:41 |
| ← grpc left | 14:46 |
| → zoorat joined | 14:47 |
| → regret joined | 14:47 |
| ← Quack left | 14:47 |
| ← SuperLag left | 14:51 |
| → SuperLag joined | 14:51 |
| → epicout_ joined | 14:51 |
| ← epicout left | 14:55 |
| → Murr- joined | 14:57 |
| ← Night0wl3 left | 14:58 |
| ← Murr left | 14:59 |
| Murr- → Murr | 14:59 |
| → Night0wl3 joined | 14:59 |
| → stuv joined | 15:01 |
| → fflam joined | 15:03 |
| → epony joined | 15:07 |
| → Quack joined | 15:07 |
| ← kurahaupo left | 15:09 |
| ← davidsenk left | 15:14 |
| → davidsenk joined | 15:14 |
| VioletJewel → vi6j | 15:16 |
| ← nivag_2c left | 15:21 |
| ← coot left | 15:26 |
| ← dnh left | 15:31 |
| → nate4 joined | 15:32 |
| → warmana joined | 15:33 |
| → nivag_2c joined | 15:34 |
| ← Quack left | 15:35 |
| → hbautista joined | 15:36 |
| ← nate4 left | 15:37 |
| ← hbautista left | 15:40 |
| → Quack joined | 15:42 |
| ← epony left | 15:44 |
| ← epicout_ left | 15:51 |
| ← cbreak_ left | 15:53 |
| → Jaxef joined | 15:54 |
| → cbreak joined | 15:55 |
| ← fflam left | 15:55 |
| → fflam joined | 15:57 |
| → epony joined | 15:59 |
| → dnh joined | 16:00 |
| → Guest146856 joined | 16:04 |
| → fflam_ joined | 16:06 |
| ← nivag_2c left | 16:06 |
| ← lucasta left | 16:08 |
| ← Quack left | 16:09 |
| ← masoudd_ left | 16:12 |
| → Quack joined | 16:18 |
| → Rashad joined | 16:19 |
| → Betal joined | 16:19 |
| ← mobidrop left | 16:26 |
| ← lunatiq left | 16:26 |
| → A_Dragon joined | 16:26 |
| → B4ckBOne-ghost joined | 16:26 |
| → lunatiq joined | 16:26 |
| ← lunatiq left | 16:26 |
| → lunatiq joined | 16:26 |
| ← B4ckBOne left | 16:27 |
| A_Dragon → Festive_Dragon | 16:27 |
| ← Quack left | 16:28 |
| ← Festive_Derg left | 16:28 |
| Festive_Dragon → Festive_Derg | 16:28 |
| → epicout joined | 16:30 |
| ← zoorat left | 16:31 |
| ← john_johnk left | 16:33 |
| → Quack joined | 16:35 |
| ← Rashad left | 16:36 |
| ← duxsco left | 16:37 |
| → Rashad joined | 16:39 |
| → kjartan joined | 16:41 |
| ← cdown left | 16:42 |
| → cdown joined | 16:43 |
| → XorMan joined | 16:48 |
| ← dnh left | 16:50 |
| → AndOrMan joined | 16:51 |
| ← Quack left | 16:52 |
| ← XorMan left | 16:53 |
| ← thiago left | 17:00 |
| → Quack joined | 17:01 |
| ← jacobk left | 17:09 |
| ← warmana left | 17:10 |
| ← rhe left | 17:11 |
| → rhe joined | 17:11 |
| ← Quack left | 17:13 |
| → Sasazuka joined | 17:13 |
| → coot joined | 17:15 |
| ← Guest1235 left | 17:23 |
| → Quack joined | 17:24 |
| ← xdminsy left | 17:25 |
| ← Guest146856 left | 17:26 |
| → skapata joined | 17:30 |
| → szkl joined | 17:30 |
| → Guest1235 joined | 17:31 |
| → john_johnk joined | 17:32 |
| ← Quack left | 17:32 |
| ← MGF_Fabio left | 17:33 |
| ← makara left | 17:38 |
| ← makara1 left | 17:39 |
| → Quack joined | 17:40 |
| ← Quack left | 17:48 |
| vi6j → vi- | 17:48 |
| → Leonarbro joined | 17:56 |
| → Quack joined | 17:56 |
| → makara joined | 17:58 |
| → makara1 joined | 17:58 |
| ← Quack left | 18:04 |
| ← epicout left | 18:07 |
| → zetef joined | 18:08 |
| → Quack joined | 18:12 |
| → wootehfoot joined | 18:12 |
| ← fflam left | 18:15 |
| ← Rashad left | 18:15 |
| → rustyshackleford joined | 18:16 |
| ← AndOrMan left | 18:16 |
| ← haritz left | 18:18 |
| ← de-facto left | 18:19 |
| → de-facto joined | 18:20 |
| ← osse left | 18:20 |
| ← Quack left | 18:20 |
| → osse joined | 18:22 |
| ← fflam_ left | 18:24 |
| ← bket left | 18:24 |
| → Quack joined | 18:26 |
| ← mane left | 18:26 |
| → bket joined | 18:26 |
| → Rashad joined | 18:29 |
| ← Quack left | 18:38 |
| ← rty left | 18:39 |
| ← batrick left | 18:40 |
| → Quack joined | 18:45 |
| ← vysn left | 18:48 |
| ← Quack left | 18:55 |
| → masoudd_ joined | 18:57 |
| ← khrbtxyz left | 18:59 |
| → khrbtxyz joined | 19:02 |
| ← Artea left | 19:04 |
| → rgrinberg joined | 19:05 |
| → Artea joined | 19:07 |
| → ahmed joined | 19:08 |
| ← john_johnk left | 19:08 |
| ← Echoz left | 19:09 |
| → Quack joined | 19:14 |
| → JanC_ joined | 19:18 |
| ← JanC left | 19:19 |
| JanC_ → JanC | 19:19 |
| ← rsx left | 19:20 |
| ← parm left | 19:22 |
| ← Quack left | 19:24 |
| → parm joined | 19:24 |
| → batrick joined | 19:27 |
| → Quack joined | 19:27 |
| → tjr joined | 19:28 |
| → nate4 joined | 19:34 |
| ← Quack left | 19:35 |
| ← stuv left | 19:37 |
| ← nate4 left | 19:38 |
| → mane joined | 19:40 |
| ← rgrinberg left | 19:41 |
| ← igemnace left | 19:42 |
| → Quack joined | 19:46 |
| ← dizo left | 19:47 |
| ← mane left | 19:48 |
| ← szkl left | 19:49 |
| ← reset left | 19:49 |
| → john_johnk joined | 19:49 |
| → Echoz joined | 19:51 |
| ← Quack left | 19:55 |
| → petaflot joined | 20:01 |
| → darkAffinity2368 joined | 20:03 |
|
petaflot
| hello. I'm alway very confused with git when it comes to rebasing and merges, for some reason I often manage to do it the wrong wray round. I'm in the case where I modified only a single file (I have a backup of it so I can afford to stash it), I made a fetch, checked out the (remote?) branch I want to be on, but then it all goes wrong | 20:04 |
| → Quack joined | 20:06 |
|
petaflot
| typically this is for marlinfw ; I `git checkout -f bugfix-2.1.x` I just want to stash everything that is not done by me, make sure I'm not using any obsolete code or config, this has been getting me nuts for ages (and I usually end of trashing the entire local copy of the repos to clone it again, which is obviously wrong). can anyone advise? | 20:07 |
|
| I don't want to merge, I don't want to rebase, I just want to change branch (and stash everything) | 20:08 |
|
j416
| petaflot: all git commands apply to what you have currently checked out, unless otherwise specified. | 20:08 |
|
| petaflot: git checkout foo && git rebase bar, will rebase foo on bar. | 20:08 |
|
petaflot
| I made a new branch for ma changes, I want to get rid of everything | 20:08 |
|
j416
| petaflot: git checkout foo && git merge bar, will merge bar into foo. | 20:09 |
|
petaflot
| I don't want to merge anything | 20:09 |
|
j416
| I'm giving you general advice. | 20:09 |
| → Kroko joined | 20:09 |
|
petaflot
| thank you but this general advice I can find on https://git-scm.com/book/en/v2/Git-Branching-Rebasing and it doesn't help | 20:09 |
|
j416
| alright, read that then. I hope you can fix your issue. | 20:10 |
|
| o/ | 20:10 |
|
petaflot
| I've read it times and times over for years but I can never find what is the correct procedure | 20:11 |
|
| and as much as I honestly do believe git is one of the most wonderful tools ever invented in computer science (and not only), I find the doc sooo confusing (maybe it doesn't help that english is not my native language) | 20:14 |
|
waterkip
| i'm a bit puzzled with --format from git log, from what I'm reading --format='%>(4)%s' should pad four spaces before printing the subject right? | 20:14 |
| ← Quack left | 20:15 |
| → sanTmue joined | 20:15 |
| ← Rashad left | 20:17 |
| ← CAT_S left | 20:18 |
| ← Kroko left | 20:18 |
| → krushia joined | 20:18 |
| ← lester29_ left | 20:18 |
|
j416
| waterkip: sounds right, yes | 20:18 |
|
| waterkip: note that it's padding, not adding; it's for alignment | 20:19 |
| → rgrinberg joined | 20:20 |
|
j416
| at least that's how I interpret it. | 20:20 |
|
| waterkip: what are you trying to do? | 20:20 |
|
petaflot
| even the way the arrows point in the doc I linked above is opposite from anything that seems logical to me | 20:20 |
|
b0nn
| petaflot: If I read what you are saying, you had some changes in your branch, then you did a fetch? | 20:21 |
|
| and that caused a merge | 20:21 |
|
j416
| petaflot: the git object model (what is a commit, how does it relate to other commits, and so on) is useful to look into if you haven't yet. | 20:21 |
|
waterkip
| j416: something similar to: printf '%s%+10s\n' this that | 20:21 |
|
j416
| petaflot: also, note that rebasing and merging only applies to commits; changes that you have not committed are outside of that. | 20:22 |
|
| waterkip: I'm unfamiliar with that syntax; what does it mean? | 20:23 |
|
waterkip
| %s is in this case, just print a string | 20:24 |
| → fflam joined | 20:24 |
|
waterkip
| the %+10s means, pad the string with spaces so its 10 chars long | 20:25 |
| ← regret left | 20:25 |
|
j416
| ah, I see. | 20:25 |
|
waterkip
| eg: printf '%s%+10s\n' 10 20 becomes '10 20' | 20:25 |
| → dnh joined | 20:27 |
|
j416
| the syntax you suggested above seems to do just that. | 20:27 |
|
| what's the issue? | 20:27 |
|
waterkip
| my expectation is that git needs to do something similar, but it isn't doing it | 20:27 |
|
j416
| git log -1 --format='%>(10)%h' -> " 2d2c3f9" | 20:28 |
| → lester29 joined | 20:28 |
| → Quack joined | 20:29 |
|
waterkip
| ohhh I see why | 20:29 |
| ← rgrinberg left | 20:30 |
|
waterkip
| thnx | 20:30 |
| → CAT_S joined | 20:31 |
| ← dnh left | 20:31 |
|
waterkip
| the value that i'm using is bigger than the value between the () | 20:31 |
|
| so it doesn't pad it | 20:32 |
|
| which is correct | 20:32 |
|
j416
| makes sense | 20:32 |
|
waterkip
| and when you use it with %B it doesn't do it for every line in the body, but just the first one | 20:33 |
|
j416
| also makes sense; it's one string afterall | 20:33 |
|
waterkip
| kinda sorta, but you cannot make a pretty indented subject line like format=medium | 20:34 |
|
| or body to be more precise | 20:34 |
|
j416
| mhm. | 20:34 |
|
petaflot
| I made a drawing of my problem: https://www.imgpaste.net/image/S7iyfu how can I get from C1 to C4 (git fetch was done after t3) | 20:36 |
| ← Quack left | 20:36 |
|
j416
| petaflot: what do you want your history to look like? | 20:37 |
|
b0nn
| petaflot: you want c1, c2, and c3 to be immediately previous to c4? | 20:37 |
|
| but not c5? | 20:38 |
|
waterkip
| petaflot: you want C0-C2-C3-C4-C5 ? | 20:38 |
| ← Sasazuka left | 20:38 |
|
j416
| ah, you don't have C4 yet? | 20:39 |
|
| git checkout X1 && git merge C3 | 20:39 |
|
| that will create a new commit on branch X1 that combines C1 and C3 | 20:39 |
|
petaflot
| I don't "know" how I want my history to look like, I just want it to make sense in "a git way" (and I want only the single line I changed and committed on C1 to differ from 'X') ; ie. I were to make a patch that diffs C0/C1 I want to re-apply that patch to C3 | 20:39 |
|
| no I don't have C4 yet | 20:40 |
|
waterkip
| and you want to keep history? | 20:40 |
| → Sasazuka joined | 20:40 |
|
j416
| you should give that some thought; consistent structure makes the repo easier to work with. If the project you're working on already has some set way of working, try to follow that. | 20:40 |
|
petaflot
| waterkip: what history? my single patch? | 20:40 |
|
b0nn
| There's a few options available to you - merging the upstream changes into your branch, cherry picking them, and rebasing your branch such that your c1 is after c2 and c3 | 20:41 |
|
j416
| waterkip: not sure if there is a format string that can do that; re: indent the body | 20:41 |
|
waterkip
| yes, sorta, do you want: C0-C1-C2-C3 or do you want C0-C2-C3-C1 ? | 20:41 |
|
petaflot
| j416: can't I do use a reference to the branch name ('X') rather than a specifig commit ('C3') ? | 20:41 |
| → Quack joined | 20:41 |
| B4ckBOne-ghost → B4ckBOne | 20:41 |
|
waterkip
| petaflot: you can, but you updated the reference to include C5 with t5 fetch | 20:42 |
|
j416
| petaflot: if C3 is the last commit of branch X, you can say X. | 20:42 |
|
petaflot
| j416: in this case, C5 hasn't happend yet | 20:42 |
|
j416
| petaflot: if C3 is the one before the last commit, you can say X^. | 20:42 |
| → regret joined | 20:42 |
|
waterkip
| petaflot: than you can just merge X into your branch | 20:43 |
|
j416
| petaflot: apart from the pre-written commit message that will change a bit depending on if you give merge a branch name or a commit reference (regardless of how you specify that commit apart from just the branch name), there's no difference in the merge result | 20:43 |
|
waterkip
| j416: re body: me neither | 20:44 |
|
petaflot
| so in order sth like "git clone [repo] ; git checkout X ; git branch X1 ; git checkout X1 ; [edit file] ; git commit ; [ wait a while ] ; git fetch ; git merge X" and this is it? | 20:45 |
|
j416
| I seem to remember reading that there's a default format string; but can't find that part in the man page. Might be that it doesn't even apply to the medium format. | 20:45 |
| ← zetef left | 20:45 |
|
j416
| petaflot: not quite | 20:45 |
|
| petaflot: git fetch will not affect anything here | 20:45 |
|
petaflot
| so when do I do the pull | 20:46 |
|
b0nn
| petaflot: I personally default to rebasing such that my changes are placed after the changes to the upstream branch | 20:46 |
|
j416
| petaflot: you mention no pull | 20:46 |
|
| what b0nn suggests is usually a good workflow | 20:46 |
|
| when rebasing, one must keep in mind that whatever you rebase on might affect your changes; always check that your changes are still correct after the rebase | 20:47 |
|
petaflot
| ideally I want my git history to look like https://www.imgpaste.net/image/S7iMqz (dashed lines are obsolete) | 20:48 |
|
| which AFAIK is what b0nn suggests | 20:48 |
|
j416
| petaflot: that's exactly what rebase will accomplish | 20:48 |
|
waterkip
| petaflot: with using git fetch you only update the reference, you don't change anything local. if you switch to branch X locally you would see so much ahead so much after remote/X, you need to merge remote/X first into your local branch | 20:48 |
|
j416
| petaflot: indeed | 20:48 |
|
waterkip
| petaflot: you can also merge the remote: eg, git fetch && git merge remote/X | 20:49 |
|
j416
| petaflot: git clone <repo>; git checkout X; git branch X1; git checkout X1; [edit file]; git commit; [wait a while]; git checkout X; git pull; git checkout X1; git rebase X | 20:49 |
|
| something like that. | 20:50 |
| → mane joined | 20:50 |
|
b0nn
| petaflot: there are a few ways to do this, you can manually rebase every time, or you can configure git to default to rebasing (as per https://stackoverflow.com/questions/13846300/how-to-make-git-pull-use-rebase-by-default-for-all-my-repositories) | 20:51 |
| ← Quack left | 20:51 |
|
petaflot
| j416: oh right so I _need_ to checkout X *then* pull *then* checkout X1 *then* rebase on X | 20:51 |
|
b0nn
| The manual way is good for learning, but once you get lazy, gitconfig is your friend | 20:51 |
|
j416
| petaflot: yes, because all operations affect what is _currently checked out_ | 20:52 |
|
petaflot
| .. except fetch, right? | 20:52 |
|
j416
| yes, fetch, as waterkip mentions, updates your remote tracking branches | 20:52 |
|
| it does not affect what you have currently checked out | 20:52 |
|
| remote tracking branches being for example origin/foo | 20:53 |
|
| that's a copy of what was a the remote that last time you ran fetch | 20:53 |
|
| (or pull, which is fetch + merge) | 20:53 |
|
waterkip
| petaflot: fetch is just updating references, pull is fetch + merge | 20:53 |
|
| or rebase, depending on pull.rebase config | 20:53 |
|
j416
| nod | 20:54 |
|
| nowadays, pull won't merge by default either | 20:54 |
|
| I think. | 20:54 |
|
waterkip
| correct | 20:54 |
|
| you need to set something for pull.rebase | 20:54 |
|
j416
| it'll err out and ask you to tell it what you want | 20:54 |
|
petaflot
| and this is where I'm like "do what I want to do, I don't uderstand what you're asking" | 20:55 |
|
j416
| but this is a side-track | 20:55 |
| → AndOrMan joined | 20:55 |
|
waterkip
| petaflot: read into git pull, git fetch | 20:55 |
|
j416
| petaflot: know what you want, then find the commands, rather than the other way round or trial and error :) | 20:55 |
|
| petaflot: your drawing made it quite clear, thanks for that | 20:56 |
|
waterkip
| petaflot: and look into the .git dir, specifically, refs, before and after you do fetch/pull and merge | 20:56 |
|
petaflot
| j416: lol, do oyu know how many times I've made copies of my local repositories (including changes) in order to figure out what the correct commands were (and then forgetting what actually worked, and having to start all over again) | 20:57 |
|
j416
| but note that refs may be packed, so you might not actually see them there. | 20:57 |
|
| petaflot: heh. | 20:57 |
|
petaflot
| whatever "packed" means | 20:57 |
|
| .... | 20:57 |
|
j416
| petaflot: that's kind of what git is for, to allow you to not make copies of stuff | 20:57 |
|
| petaflot: packed means it's stored in a packfile; it makes it faster for git to access and it takes up less space | 20:58 |
| ← fflam left | 20:58 |
|
j416
| it's nothing you need to care about much | 20:58 |
|
| git internal. | 20:59 |
|
petaflot
| I've "broken" some repositories to the point where my history got soo confusing I just trashed the entire history and started new after hours of manual merging. totally what git is supposed to avoid | 20:59 |
|
waterkip
| petaflot: you can always make copies of a branch, eg git checkout mybranch && git checkout -b copy-of-mybranch | 20:59 |
|
j416
| "git checkout -b mybranch" is the same as "git branch mybranch && git checkout mybranch". | 20:59 |
| ← jmd left | 21:00 |
|
petaflot
| I've always been quite upset that "git branch foo" did not automatically checkout to foo (because if I make a branch, what reason would I have not to check it out) and then I made changs to the wrong branch | 21:01 |
| → masoudd__ joined | 21:01 |
|
j416
| "git branch foo" is a great way to create a temporary branch that references whatever commit you're currently on, so that you can go back to that later in case you screw up. | 21:02 |
|
waterkip
| you even have git branch -c | 21:02 |
|
petaflot
| then I use gitk whenever I can, but sometimes on remotes machines this is not straightforward (and gitk doens't let me clean my tree) | 21:02 |
|
b0nn
| petaflot: I alias a lot of commands, checkout is co on my machines - so it's just `git co - b newBranch` | 21:02 |
|
j416
| petaflot: git log --online --graph | 21:02 |
|
| aliases are handy. | 21:03 |
|
waterkip
| petaflot: good luck with everything. The rest of you, ttfn, I'm going for a run | 21:03 |
|
j416
| run; nice. | 21:03 |
|
petaflot
| $thanks for your help guys | 21:03 |
|
j416
| go go go | 21:03 |
|
waterkip
| j416: thnx for the help with format ;) | 21:03 |
|
b0nn
| er, ignore the space between - and b | 21:03 |
| → Quack joined | 21:03 |
|
j416
| \^^/ | 21:03 |
| → thiago joined | 21:04 |
|
| petaflot going to chill out/sleep, it's 10pm here | 21:04 |
| ← masoudd_ left | 21:04 |
|
waterkip
| b0nn: i use git nb for that, that's a script that created the branch name based on ticket ID's, eg git nb 1234 some random thing becomes ISSUE-1234-some_random_thing | 21:05 |
|
| petaflot copied the conversation and will study it again tomorrow with a clear head | 21:05 |
|
b0nn
| waterkip: oh, that sounds handy | 21:05 |
|
waterkip
| yeah, and I overengineered it, soe the commit message also uses the issue ID from the branch name in the commit message | 21:09 |
| → rgrinberg joined | 21:10 |
|
waterkip
| which is even handier because audit reasons at $work | 21:10 |
|
| b0nn must see | 21:11 |
|
b0nn
| have you got a gist of it? | 21:11 |
| ← rainystorm left | 21:11 |
|
waterkip
| https://gitlab.com/waterkip/bum/-/tree/master/hooks | 21:12 |
| ← Sasazuka left | 21:12 |
| ← Quack left | 21:13 |
|
b0nn
| hmm, that looks nice (it should work in bash right? I see that it's in zsh) | 21:13 |
|
waterkip
| this is a zsh0ism: REGEXP="${(j:|:)PREFIXES=}" | 21:14 |
|
b0nn
| ok | 21:14 |
|
waterkip
| This too: ISSUE=(${(@s:-:)CUR}) and ISSUE=(${(@s:-:)CUR}) as well | 21:14 |
|
| its a join, aand a split | 21:15 |
|
| should be fairly simple to port to bash I think | 21:15 |
|
b0nn
| Heh - I wonder how well chatGPT will go at porting it :) | 21:16 |
|
| b0nn asked it about porting some Prolog to Go the other day and it nearly cried) | 21:16 |
|
waterkip
| i think this is a join in bash: ${@/#/$d} where $d is the join char | 21:18 |
| ← kjartan left | 21:21 |
|
waterkip
| b0nn: you use vim? | 21:22 |
|
b0nn
| Yes :) | 21:22 |
|
waterkip
| https://gitlab.com/waterkip/bum/-/blob/master/bin/vim-git I use this editor for it ;) | 21:22 |
| → Sasazuka joined | 21:22 |
| ← weko_ left | 21:23 |
|
waterkip
| so you can start typoiung after the ISSUE-1234: | 21:23 |
|
b0nn
| Y'know, I've tried using git inside vim with one of timpope's extensions, but I just cannot get the flow right, and almost always go back to the command line | 21:23 |
|
waterkip
| like I said, I overengineered it | 21:24 |
|
| same here | 21:24 |
|
| I always useanother term | 21:24 |
|
b0nn
| yeah - tmux for the win | 21:24 |
|
waterkip
| i3, tiling wm | 21:24 |
|
b0nn
| Oh, I see that code opend a vim instance | 21:24 |
| ← LuKaRo_ left | 21:24 |
| ← mane left | 21:25 |
|
b0nn
| I have i3 for the windows, but tmux inside the terminal - so I have one window for browser, and one for the terminal (almost makes i3 unneeded) | 21:25 |
| → LuxuryMode joined | 21:25 |
| → Quack joined | 21:25 |
|
waterkip
| I have a 49 inch screeen | 21:25 |
|
b0nn
| Oh, I am on the RPi atm, with a 27inch, but I also have the desktop on a 55inch tv | 21:26 |
|
enrh
| Can someone remind me how to clear unused branch names? The ones that show in red when doing git branch -a | 21:26 |
| ← Traneptora left | 21:28 |
| ← sanTmue left | 21:30 |
|
ikke
| git fetch --prune origin | 21:33 |
|
enrh
| ikke: Thank you! | 21:33 |
| ← Quack left | 21:34 |
|
ikke
| Those are called remote tracking branches | 21:34 |
| → LuKaRo joined | 21:34 |
| ← xx left | 21:35 |
| ← darkAffinity2368 left | 21:37 |
|
enrh
| Interesting, those words actually make sense to me! | 21:37 |
| → darkAffinity2368 joined | 21:38 |
| → JeffH joined | 21:38 |
|
JeffH
| How can I do a 'git checkout HEAD~ -- file' and have it checkout as if it were untracked? | 21:39 |
| → Quack joined | 21:43 |
| → Maxb0tbeep joined | 21:44 |
| ← Quack left | 21:51 |
| → PantelicGR joined | 21:51 |
| ← coot left | 21:54 |
| ← miigotu left | 21:56 |
| → miigotu joined | 21:58 |
| ← luca left | 21:59 |
| → luca_ joined | 21:59 |
| luca_ → luca | 22:00 |
| → Quack joined | 22:01 |
| ← rgrinberg left | 22:01 |
| → bambanxx joined | 22:02 |
| → liefer396 joined | 22:03 |
|
ikke
| git restore --source HEAD~ -- file | 22:04 |
|
b0nn
| waterkip: this is really helpful, thanks for sharing | 22:04 |
|
circuitbone
| Non destructive > destructive. leave it all around in case. | 22:06 |
| → weko joined | 22:08 |
| ← Quack left | 22:10 |
|
JeffH
| thanks | 22:13 |
| → rgrinberg joined | 22:14 |
| ← donofrio left | 22:15 |
| ← Maxb0tbeep left | 22:17 |
| → Quack joined | 22:17 |
| ← AndOrMan left | 22:18 |
|
j416
| JeffH: checkout + reset would also work | 22:23 |
| ← Vonter left | 22:24 |
|
JeffH
| J416: I ended up doing 'git show HEAD~1:<file> > <file> | 22:25 |
|
| that worked. | 22:26 |
| → Vonter joined | 22:26 |
| ← bambanxx left | 22:27 |
|
j416
| git, what a versatile tool. | 22:28 |
| → bambanxx joined | 22:33 |
| ← Quack left | 22:41 |
| → Quack joined | 22:46 |
| ← Quack left | 22:55 |
| ← masoudd__ left | 22:57 |
| → user03 joined | 22:57 |
| user03 → gchound | 22:58 |
|
waterkip
| b0nn: yw | 22:59 |
| → fflam joined | 22:59 |
| → Quack joined | 23:02 |
| ← Leonarbro left | 23:04 |
| ← Quack left | 23:12 |
| → AndOrMan joined | 23:16 |
| ← AndOrMan left | 23:17 |
| → AndOrMan joined | 23:17 |
| ← AndOrMan left | 23:18 |
| → AndOrMan joined | 23:19 |
| → lacrymol1gy joined | 23:21 |
| ← LuKaRo left | 23:22 |
| → Quack joined | 23:22 |
| ← PantelicGR left | 23:22 |
| ← lacrymology left | 23:22 |
| → LuKaRo joined | 23:26 |
| ← Quack left | 23:35 |
| → nate4 joined | 23:35 |
| ← nate4 left | 23:40 |
| ← jklfds left | 23:46 |
| → jklfds joined | 23:48 |
| ← jklfds left | 23:52 |
| → cpackham joined | 23:55 |
| ← cpackham left | 23:58 |