| 2022-07-17 |
| ← feriman left | 00:03 |
| → Ajax1468 joined | 00:03 |
| → thiago joined | 00:05 |
| ← Ajax146 left | 00:05 |
| Ajax1468 → Ajax146 | 00:05 |
| → Sulky joined | 00:06 |
| ← m0viefreak left | 00:09 |
| → pulse joined | 00:09 |
| ← thiago left | 00:10 |
| ← ghost43 left | 00:14 |
| ← dsrt^ left | 00:14 |
| → ghost43 joined | 00:15 |
| → Ajax1469 joined | 00:15 |
| ← Ajax146 left | 00:17 |
| Ajax1469 → Ajax146 | 00:17 |
| → lkor joined | 00:21 |
| ← lionkor left | 00:22 |
| → wbntdodt^ joined | 00:26 |
| ← nate4 left | 00:34 |
| → BUSY joined | 00:35 |
| → tsraoien joined | 00:38 |
| ← cronos left | 00:40 |
| → cronos joined | 00:40 |
| → prplecake joined | 00:45 |
| ← XV8 left | 00:47 |
| ← tsraoien left | 00:49 |
| ← laocid left | 00:50 |
| → sh0ne joined | 01:01 |
| ← keypusher left | 01:11 |
| ← lxsameer left | 01:13 |
| → keypusher joined | 01:13 |
| → nate4 joined | 01:15 |
| ← rgrinberg left | 01:16 |
| ← nate4 left | 01:23 |
| ← vdamewood left | 01:24 |
| ← umbramalison left | 01:24 |
| → umbramalison joined | 01:25 |
| ← smallville7123 left | 01:27 |
| ← FinnElija left | 01:30 |
| ← gxt left | 01:30 |
| → gxt joined | 01:31 |
| → FinnElija joined | 01:31 |
| ← pulse left | 01:32 |
| ← Peng left | 01:33 |
| → pulse joined | 01:33 |
| → Peng joined | 01:33 |
| ← pulse left | 01:33 |
| → pulse joined | 01:35 |
| → rgrinberg joined | 01:40 |
| → nate4 joined | 01:52 |
| ← lkor left | 01:54 |
| ← nate4 left | 01:57 |
| ← gxt left | 02:00 |
| ← ghost43 left | 02:00 |
| → gxt joined | 02:00 |
| → ghost43 joined | 02:00 |
| ← mon_aaraj left | 02:01 |
| ← FinnElija left | 02:03 |
| → mon_aaraj joined | 02:04 |
| → XV8 joined | 02:05 |
| ← pretty_dumm_guy left | 02:06 |
| → FinnElija joined | 02:09 |
| ← perrierjouet left | 02:10 |
| ← sh0ne left | 02:12 |
| ← sudoforge left | 02:15 |
| ← kevr left | 02:28 |
| ← zumba_addict left | 02:28 |
| → kevr joined | 02:28 |
| → Dotz0cat_ joined | 02:32 |
| ← Dotz0cat left | 02:33 |
| Dotz0cat_ → Dotz0cat | 02:35 |
| → cvmn joined | 02:40 |
| → Dotz0cat_ joined | 02:40 |
| → finn_elija joined | 02:40 |
| ← FinnElija left | 02:40 |
| finn_elija → FinnElija | 02:40 |
| ← Dotz0cat left | 02:41 |
| Dotz0cat_ → Dotz0cat | 02:42 |
| ← rgrinberg left | 02:43 |
| → hoochmonger joined | 02:51 |
| → gast0n joined | 02:53 |
| money → bigdaddykane | 02:54 |
| ← tyson2 left | 02:56 |
| ← TonyStone left | 02:57 |
| ← mud left | 03:02 |
| ← jinsl left | 03:04 |
| → jinsl joined | 03:04 |
| → nate4 joined | 03:14 |
| ← zebrag left | 03:15 |
| ← cvmn left | 03:16 |
| ← nate4 left | 03:19 |
| → mud joined | 03:33 |
| ← Murr left | 03:34 |
| → The_Blode joined | 03:46 |
| → thiago joined | 03:58 |
| → Ajax1462 joined | 04:04 |
| ← Ajax146 left | 04:05 |
| Ajax1462 → Ajax146 | 04:05 |
| → rgrinberg joined | 04:21 |
| → nate4 joined | 04:23 |
| ← nate4 left | 04:28 |
| ← gast0n left | 04:45 |
| ← ferdna left | 04:50 |
| → Wh0 joined | 04:57 |
| → perrierjouet joined | 05:04 |
| → madewokherd` joined | 05:09 |
| ← pulse left | 05:10 |
| ← madewokherd left | 05:13 |
| ← Wh0 left | 05:13 |
| ← EternalSunshine left | 05:18 |
| → Wh0 joined | 05:18 |
| → codaraxis__ joined | 05:29 |
| → Sulky_ joined | 05:29 |
| ← tirnanog left | 05:31 |
| ← Sulky left | 05:32 |
| ← codaraxis___ left | 05:33 |
| → dig joined | 05:34 |
| ← Visne left | 05:40 |
| → Visne joined | 05:41 |
| → sh0ne joined | 05:46 |
| ← dig left | 05:48 |
| ← bloody left | 05:48 |
| → dig joined | 05:54 |
| → FFY00_ joined | 05:54 |
| ← FFY00 left | 05:54 |
| ← jazzy left | 05:54 |
| ← great_taste left | 06:04 |
| ← thiago left | 06:10 |
| → nate4 joined | 06:11 |
| ← nate4 left | 06:17 |
| → dviola joined | 06:18 |
| ← hamburgler left | 06:33 |
| ← Marmotte left | 06:34 |
| → rsx joined | 06:34 |
| → Marmotte joined | 06:35 |
| → lgc joined | 06:42 |
| ← lgc left | 06:43 |
| ← ghost43 left | 06:46 |
| ← GNUmoon left | 06:46 |
| ← crabbedhaloablut left | 06:46 |
| ← rgrinberg left | 07:04 |
| ← dig left | 07:13 |
| → ghost43 joined | 07:13 |
| → EvilDMP joined | 07:16 |
| → dionysus69 joined | 07:19 |
| ← mon_aaraj left | 07:22 |
| → node1 joined | 07:23 |
| → mon_aaraj joined | 07:25 |
| → smallville7123 joined | 07:41 |
| ← wootehfoot left | 07:50 |
| → igemnace joined | 07:50 |
| → Ajax1467 joined | 07:55 |
| ← Ajax146 left | 07:56 |
| Ajax1467 → Ajax146 | 07:56 |
| ← kevr left | 08:00 |
| ← adanwan left | 08:00 |
| → adanwan joined | 08:01 |
| → srinidhi joined | 08:01 |
|
AlexKalopsia
| Hi everyone, I need some noob help. I forked a repo, and my first commit included some changes I made. Now I would like to have a separate branch that goes back to "before my first commit" (basically to the state as if I just forked the repo). Doing git reset --hard brings it back to AFTER my first commit. Same with git fetch origin master. Maybe I | 08:02 |
|
| should fetch the remote? | 08:02 |
| → kevr joined | 08:03 |
| ← hqdruxn08__ left | 08:03 |
|
ikke
| git switch -c new-branch origin/master | 08:05 |
|
| or did you commit the previous changes on top of master and pushed that? | 08:05 |
| ← EvilDMP left | 08:10 |
| → wootehfoot joined | 08:10 |
| → hqdruxn08 joined | 08:11 |
| → van1 joined | 08:11 |
|
van1
| Hi | 08:12 |
| ← van1 left | 08:14 |
|
AlexKalopsia
| committed and pushed :S So I'll explain a bit better my situation. | 08:16 |
|
| RepoA got forked by a user into RepoB, and they made a PR (USER-PR-1) for RepoA. | 08:16 |
|
| I wanted to extend their PR (USER-PR-1), so I forked RepoB, did a change, pushed, and opened a PR (MY-PR-1) for Repo B. So far all good. | 08:16 |
|
| Now, my goal is to basically make a PR (MY-PR-2) for RepoA, separate from (USER-PR-1), but I can't seem to be able to do that because I already have a fork (of RepoB) which, to my understanding, means I am _forced_ to have the USER-PR-1 in my PR2. | 08:16 |
| ← myme1 left | 08:17 |
| → myme1 joined | 08:17 |
| ← mven left | 08:18 |
|
ikke
| no, you are not | 08:19 |
|
| Add their repo as a remote to your repository, and fetch that | 08:19 |
|
| then create new branches on top of master from that remote | 08:19 |
| ← node1 left | 08:20 |
| → Liblx joined | 08:22 |
| → cvmn joined | 08:22 |
| → hello-smile6 joined | 08:22 |
| → han-solo joined | 08:23 |
| → kevr_ joined | 08:23 |
| ← kevr left | 08:23 |
| ← srinidhi left | 08:32 |
| ← rsx left | 08:34 |
|
AlexKalopsia
| mmm ok, let me give it a try | 08:35 |
| → feriman joined | 08:36 |
| → acebrianjuan joined | 08:38 |
| ← cvmn left | 08:38 |
|
AlexKalopsia
| > then create new branches on top of master from that remote | 08:38 |
|
| do you mean I should first checkout the new remote, and then from there create a new branch? | 08:38 |
| → EvilDMP joined | 08:38 |
|
ikke
| You can create branches on top of other branches that you don't have checked out | 08:39 |
| ← feriman left | 08:42 |
|
AlexKalopsia
| that worked, ikke, thank you so much! | 08:42 |
| → feriman joined | 08:43 |
|
ikke
| no problem | 08:44 |
| ← skapata left | 08:44 |
| ← hello-smile6 left | 08:44 |
|
AlexKalopsia
| when I create a new branch I always do git checkout -b branchname. is there a more approriate way of doing that? | 08:44 |
|
ikke
| that's fine, but the 2nd argument defines the branch it will be created on top | 08:45 |
|
| of | 08:45 |
|
| which will default to HEAD (the current branch) | 08:45 |
| → nate4 joined | 08:45 |
|
AlexKalopsia
| with second argument you mean that there is an implicit <HEAD> after git checkout -b branchname? | 08:48 |
|
ikke
| 9yes | 08:49 |
|
| so you can do | 08:49 |
|
| git checkout -b branchname upstream/master | 08:49 |
|
| so branchname will be created on top of upstream/master (the master branch you fetched from the remote called upstream) | 08:50 |
| ← nate4 left | 08:50 |
|
AlexKalopsia
| that's awesome, I didn't know that | 08:51 |
| ← wootehfoot left | 09:07 |
| → wootehfoot joined | 09:09 |
| → kenanmarasli joined | 09:10 |
| ← wbntdodt^ left | 09:10 |
| ← han-solo left | 09:11 |
| → han-solo joined | 09:15 |
| → iomari891 joined | 09:16 |
| → coot joined | 09:17 |
| ← Wh0 left | 09:19 |
| ← iomari891 left | 09:20 |
| → iomari891 joined | 09:23 |
| → epolanski joined | 09:24 |
| → lxsameer joined | 09:28 |
| → lkor joined | 09:35 |
| ← hoochmonger left | 09:37 |
| ← iomari891 left | 09:37 |
| → wbntdodt^ joined | 09:41 |
| ← lkor left | 09:44 |
| ← bkircher left | 09:46 |
| ← wootehfoot left | 09:47 |
| → wootehfoot joined | 09:52 |
| ← mon_aaraj left | 09:54 |
| → moldorcoder7 joined | 09:58 |
| → mon_aaraj joined | 10:01 |
| ← mon_aaraj left | 10:08 |
| → mon_aaraj joined | 10:09 |
| → srinidhi joined | 10:11 |
| ← coot left | 10:13 |
| ← mon_aaraj left | 10:18 |
| → mon_aaraj joined | 10:21 |
| → iomari891 joined | 10:24 |
| → m0viefreak joined | 10:29 |
| ← polyrob left | 10:37 |
| ← dionysus69 left | 10:38 |
| → polyrob joined | 10:41 |
| ← mon_aaraj left | 10:43 |
| → mon_aaraj joined | 10:45 |
| ← vishal left | 10:47 |
| → MajorBiscuit joined | 10:52 |
| → vishal joined | 10:53 |
| ← mon_aaraj left | 11:07 |
| → mon_aaraj joined | 11:09 |
| ← igemnace left | 11:09 |
| → justsomeguy joined | 11:10 |
| ← Betal left | 11:12 |
| ← mon_aaraj left | 11:13 |
| ← tejr left | 11:14 |
| → nate4 joined | 11:15 |
| → mon_aaraj joined | 11:15 |
| → tyson2 joined | 11:16 |
| ← junktext_ left | 11:19 |
| ← nate4 left | 11:20 |
| → junktext_ joined | 11:20 |
| ← mon_aaraj left | 11:22 |
| ← justsomeguy left | 11:24 |
| → mon_aaraj joined | 11:24 |
| ← chexum left | 11:31 |
| → chexum joined | 11:33 |
| ← smallville7123 left | 11:36 |
| → tejr joined | 11:36 |
| ← mon_aaraj left | 11:38 |
| → mon_aaraj joined | 11:40 |
| ← adanwan left | 11:44 |
| → adanwan joined | 11:45 |
| ← iomari891 left | 11:49 |
| → iomari891 joined | 11:50 |
| ← EvilDMP left | 11:52 |
| → momomo joined | 11:55 |
| → crabbedhaloablut joined | 11:56 |
| → Rashad joined | 11:57 |
| ← MajorBiscuit left | 12:04 |
| → smallville7123 joined | 12:05 |
| ← cweiss07653212 left | 12:09 |
| → cweiss07653212 joined | 12:09 |
| bigdaddykane → money | 12:11 |
| ← FinnElija left | 12:16 |
| → FinnElija joined | 12:18 |
| ← mon_aaraj left | 12:20 |
| → nguvu joined | 12:21 |
| → mon_aaraj joined | 12:21 |
| ← han-solo left | 12:22 |
| → Trieste_ joined | 12:27 |
| ← Trieste left | 12:27 |
| → tykling joined | 12:28 |
| ← ripdog left | 12:30 |
| Trieste_ → Trieste | 12:31 |
| → ripdog joined | 12:33 |
| ← XV8 left | 12:39 |
| → XV8 joined | 12:39 |
| ← blaklistd1 left | 12:43 |
| ← Rashad left | 12:46 |
| → FH_thecat joined | 12:50 |
| ← nguvu left | 12:51 |
| ← iomari891 left | 12:52 |
| ← Sulky_ left | 12:53 |
| → Sulky_ joined | 12:56 |
| ← mon_aaraj left | 12:56 |
| → mon_aaraj joined | 12:58 |
| ← adanwan left | 13:04 |
| → adanwan_ joined | 13:04 |
| → Rashad joined | 13:04 |
| ← mon_aaraj left | 13:06 |
| → mon_aaraj joined | 13:08 |
| → tsraoien joined | 13:13 |
| → pretty_dumm_guy joined | 13:13 |
| → iomari891 joined | 13:14 |
| ← m0viefreak left | 13:24 |
| ← iomari891 left | 13:25 |
| ← ikwyl6 left | 13:26 |
| ← Sulky_ left | 13:26 |
| → ikwyl6 joined | 13:29 |
| ← ikwyl6 left | 13:32 |
| → pulse joined | 13:33 |
| ← mitrokov left | 13:34 |
| ← adanwan_ left | 13:35 |
| → ferdna joined | 13:36 |
| → adanwan joined | 13:37 |
| ← FinnElija left | 13:38 |
| → ikwyl6 joined | 13:38 |
| → FinnElija joined | 13:39 |
| ← ikwyl6 left | 13:39 |
| ← dviola left | 13:53 |
| → ikwyl6 joined | 13:55 |
| ← mon_aaraj left | 13:55 |
| → mon_aaraj joined | 13:58 |
| ← Rashad left | 14:07 |
| → Sulky joined | 14:09 |
| → caveman joined | 14:11 |
| → jazzy joined | 14:13 |
| ← gxt left | 14:13 |
| → hoochmonger joined | 14:13 |
| → gxt joined | 14:14 |
| → nate4 joined | 14:14 |
| → sudoforge joined | 14:18 |
| ← nate4 left | 14:20 |
| ← mon_aaraj left | 14:24 |
| → mon_aaraj joined | 14:26 |
| → EvilDMP joined | 14:34 |
| → dviola joined | 14:36 |
| ← wbntdodt^ left | 14:39 |
| ← XV8 left | 14:43 |
| → hiroot joined | 14:45 |
| ← Sulky left | 14:48 |
| ← FFY00_ left | 14:53 |
| → FFY00 joined | 14:53 |
| ← ghost43 left | 14:54 |
| → ghost43 joined | 14:54 |
| ← SuperLag left | 15:02 |
| ← kenanmarasli left | 15:04 |
| ← caveman left | 15:06 |
| → SuperLag joined | 15:08 |
| → X-Scale` joined | 15:11 |
| ← ghost43 left | 15:13 |
| → thiago joined | 15:13 |
| → ghost43 joined | 15:13 |
| ← X-Scale left | 15:14 |
| X-Scale` → X-Scale | 15:14 |
| → nate4 joined | 15:18 |
| → hamburgler joined | 15:22 |
| → X-Scale` joined | 15:22 |
| ← ghost43 left | 15:23 |
| ← X-Scale left | 15:23 |
| → ghost43 joined | 15:23 |
| → adelfino joined | 15:24 |
| X-Scale` → X-Scale | 15:25 |
| → gunner joined | 15:27 |
| → rgrinberg joined | 15:30 |
| ← ferdna left | 15:41 |
| ← tyson2 left | 15:42 |
| → madewokherd joined | 15:44 |
| → Sulky joined | 15:44 |
| → iomari891 joined | 15:44 |
| ← fflam left | 15:46 |
| ← madewokherd` left | 15:46 |
| → fflam joined | 15:47 |
| ← mon_aaraj left | 15:52 |
| → mon_aaraj joined | 15:54 |
| money → polo | 16:00 |
| ← tsraoien left | 16:02 |
| ← adelfino left | 16:05 |
| ← sh0ne left | 16:05 |
| → bloody joined | 16:06 |
| ← hiroot left | 16:07 |
| → sh0ne joined | 16:10 |
| ← kevr_ left | 16:10 |
| → kevr joined | 16:11 |
| ← terminaldweller left | 16:11 |
| → kenanmarasli joined | 16:12 |
| → terminaldweller joined | 16:16 |
| → csm3105 joined | 16:17 |
| ← nate4 left | 16:18 |
| ← sh0ne left | 16:22 |
| ← gunner left | 16:23 |
| → gunner joined | 16:24 |
| → sh0ne joined | 16:24 |
| ← mon_aaraj left | 16:30 |
| → mon_aaraj joined | 16:32 |
| ← sh0ne left | 16:43 |
| ← iomari891 left | 16:44 |
| ← rgrinberg left | 16:44 |
| → rgrinberg joined | 16:48 |
| → dionysus69 joined | 16:51 |
| ← dmc left | 16:52 |
| → dmc joined | 16:54 |
| → zebrag joined | 16:54 |
| ← mon_aaraj left | 17:01 |
| → mon_aaraj joined | 17:02 |
| ← rgrinberg left | 17:07 |
| → maroloccio joined | 17:10 |
| → tyson2 joined | 17:15 |
| ← gunner left | 17:15 |
| → SteveR joined | 17:19 |
|
SteveR
| Hi there. | 17:22 |
|
| i have added upstream repo | 17:22 |
|
| i want to make sure my forked branch stays updates as the upstream master branch | 17:22 |
|
| can i just do git merge upstream? | 17:22 |
|
ikke
| merge --ff-only | 17:23 |
|
SteveR
| git merge upstream/master | 17:23 |
| ← Sulky left | 17:23 |
|
SteveR
| i just did that git fetch + git merge upstream/master | 17:23 |
|
| what is --ff-only | 17:23 |
| ← maroloccio left | 17:24 |
|
ikke
| Tells git to not make any merge commit, just fast-forward | 17:25 |
|
SteveR
| oh ok | 17:25 |
| → john_johnk joined | 17:26 |
| → skapata joined | 17:28 |
| ← skapata left | 17:28 |
| → skapata joined | 17:28 |
| ← SteveR left | 17:30 |
| → great_taste joined | 17:45 |
| ← fling left | 17:47 |
| → fling joined | 17:48 |
| → Murr joined | 17:52 |
| → han-solo joined | 17:54 |
| → ferdna joined | 17:56 |
| ← john_johnk left | 17:58 |
| polo → bigdaddykane | 17:59 |
| → rgrinberg joined | 18:02 |
| → sh0ne joined | 18:03 |
| ← sh0ne left | 18:05 |
| ← dviola left | 18:15 |
| → nate4 joined | 18:15 |
| → gas51627 joined | 18:20 |
| ← nate4 left | 18:20 |
| → torniq joined | 18:21 |
|
torniq
| I want to have 2 remotes. origin and dev. Dev consisting of just git add . ; git commit -m .. ... so i can freely move between 2 different machines and develop without being out of sync. The problem is, i don't want me dev commits to be seen on the master/develop branches. Is this covered by a git rebase? | 18:23 |
| ← tyson2 left | 18:25 |
| ← BlessJah left | 18:26 |
| → BlessJah joined | 18:28 |
| ← hamburgler left | 18:28 |
| ← epolanski left | 18:30 |
| ← csm3105 left | 18:31 |
|
hannibal_ad_port
| You can set a branch's upstream to be on that dev remote, then push pull from that. Once you're ready you can rebase/squash your commits and no one needs to know | 18:34 |
| ← Murr left | 18:36 |
| → dviola joined | 18:39 |
| ← zan left | 18:45 |
| ← han-solo left | 18:47 |
| ← ferdna left | 18:47 |
| → zan joined | 18:47 |
| ← FH_thecat left | 18:48 |
| bigdaddykane → polo | 18:51 |
| → Murr joined | 18:52 |
| → coot joined | 18:55 |
| → tdodrlt^ joined | 18:57 |
| ← riposte left | 18:59 |
| → riposte joined | 18:59 |
| → subopt joined | 19:00 |
| → hello-smile6 joined | 19:02 |
| → sh0ne joined | 19:10 |
| ← steam left | 19:16 |
| → tsraoien joined | 19:17 |
| → steam joined | 19:17 |
| → john_johnk joined | 19:22 |
| ← rgrinberg left | 19:22 |
| ← junktext_ left | 19:23 |
| ← pflanze left | 19:23 |
| → junktext_ joined | 19:24 |
| → Linkandzelda joined | 19:28 |
| → pflanze joined | 19:37 |
| → Sulky joined | 19:44 |
| ← APic left | 19:52 |
| ← foul_owl left | 19:55 |
| → rgrinberg joined | 19:57 |
| ← momomo left | 19:58 |
| ← fling left | 20:00 |
| ← kevr left | 20:00 |
| ← hello-smile6 left | 20:00 |
| → vdamewood joined | 20:01 |
| → kevr joined | 20:01 |
| → fling joined | 20:03 |
| → APic joined | 20:05 |
| → Xenguy joined | 20:11 |
| ← fling left | 20:15 |
| → fling joined | 20:16 |
| ← fling left | 20:17 |
| → fling joined | 20:17 |
| ← ghost43 left | 20:22 |
| → ghost43_ joined | 20:22 |
| ← adanwan left | 20:22 |
| ← bindu left | 20:22 |
| → bindu joined | 20:22 |
| → adanwan joined | 20:23 |
| ← coot left | 20:25 |
| → acki_ joined | 20:28 |
| ← bindu left | 20:28 |
| ← rgrinberg left | 20:29 |
|
acki_
| Is there a standard way to do a version bump in your software? | 20:29 |
| → bindu joined | 20:29 |
|
ikke
| Other than git tag -a <version>? | 20:29 |
| ← FinnElija left | 20:30 |
|
acki_
| when I would a version bump, I would tag the commit right before the bump | 20:30 |
|
| so then all commits and merge request which I integrate will have already the new version number | 20:30 |
| ← bindu left | 20:30 |
|
ikke
| The tag should point to the commit that you actually release | 20:30 |
|
acki_
| and when I want to release this version, I would do a bump again and tag the version before | 20:31 |
|
| is this the standard approach? | 20:31 |
|
ikke
| no | 20:31 |
|
acki_
| what is the standard approach? | 20:31 |
|
ikke
| Do any preparations you need ot do | 20:31 |
|
| to do* | 20:31 |
|
| when you are ready to release, tag that commit | 20:32 |
|
| When others checkout that tag, they get exactly the commit that has been release | 20:32 |
| → FinnElija joined | 20:32 |
|
ikke
| released* | 20:32 |
|
acki_
| yeah, that is the same like in my approach | 20:32 |
|
another|
| doesn't sound like it | 20:33 |
|
ikke
| acki_: you seem to make changes afterwards, or at least, I got that idea from your description | 20:33 |
|
acki_
| I think what you are descriping is the apporoach where you do a version bump in your code and tag this commit accordingly | 20:33 |
| → bindu joined | 20:33 |
|
acki_
| there is always a hard coded version number in the software itself | 20:34 |
|
ikke
| I try to avoid having the version hardcoded in the source | 20:34 |
|
acki_
| ahh you do not work with hard coded version number? | 20:34 |
|
ikke
| no | 20:34 |
|
acki_
| so this is not standard anymore? | 20:34 |
| → tirnanog joined | 20:34 |
|
ikke
| If I need the version in my software, I make it part of the build process to bake it in | 20:34 |
|
acki_
| and its get the version number from git? | 20:35 |
|
ikke
| Either that, or passed in by the build system | 20:36 |
|
| The problem with having the version hardcoded in the source is that each commit with that version in the source could be considered that version | 20:36 |
|
| so it's ambiguous what commit actually corresponds to a specific version | 20:37 |
| ← jinsl left | 20:38 |
| → gunner joined | 20:38 |
|
acki_
| but git tags can be removed? | 20:38 |
|
| and when the build number is set from outside, you can set anything you want | 20:38 |
|
| I mean the version | 20:38 |
| ← srinidhi left | 20:38 |
| → jinsl joined | 20:38 |
| ← jinsl left | 20:40 |
|
another|
| ikke: I don't consider this a huge problem. You can bake the version from `git describe` and use the hardcoded as fallback for tarballs | 20:40 |
| ← Murr left | 20:40 |
| → Murr joined | 20:41 |
|
ikke
| another|: note that when you execute git describe, it might not be the repository you expect (mainly when building from tarballs) | 20:41 |
|
another|
| which is why you need a fallback for tarballs | 20:42 |
|
ikke
| yes, but how do you detect you need to fallback? | 20:42 |
|
another|
| meson | 20:42 |
| → SnoopJ joined | 20:42 |
|
ikke
| How does meson detect it needs to fallback? | 20:42 |
|
another|
| vcs_tag | 20:42 |
|
| if it's not a git repo | 20:42 |
|
ikke
| What if the tarball is extracted in a directory of another repo? | 20:43 |
|
SnoopJ
| Is there any good way to run `git diff-index` and get a patch that excludes a given file, or am I stuck processing the resulting patch to remove that file's diff if it's present? | 20:43 |
|
another|
| sounds like a lot of ifs | 20:44 |
|
ikke
| another|: many distros work like that when packaging projects | 20:44 |
|
| So it happens once in a while that some software reports an incorrect versions because of assumptions | 20:45 |
|
another|
| man git-diff-index | 20:45 |
|
gitinfo
| the git-diff-index manpage is available at https://gitirc.eu/git-diff-index.html | 20:45 |
|
another|
| search for exclude | 20:45 |
|
ikke
| man gitglossary | 20:45 |
|
gitinfo
| the gitglossary manpage is available at https://gitirc.eu/gitglossary.html | 20:45 |
|
ikke
| pathspec | 20:45 |
|
another|
| Oh, no. Sorry, I misread | 20:46 |
|
SnoopJ
| another|, I did that and see only --diff-filter and --relative, neither of which appears to be what I'm looking for | 20:46 |
|
ikke
| another|: in anycase, I should be able to get the released version (assuming github), if I download https | 20:46 |
|
| https://github.com/namespace/project/archive/<version>.tar.gz | 20:47 |
|
| or https://github.com/namespace/project/archive/refs/tra<version>.tar.gz | 20:47 |
|
another|
| true, that isn't catched | 20:47 |
|
ikke
| or https://github.com/namespace/project/archive/refs/tags/<version>.tar.gz | 20:47 |
|
SnoopJ
| context: I am thinking of submitting a patch to a project that calls diff-index to save the resulting patch, does a checkout, runs some checks, then re-applies the saved patch. I'm looking to allow the unstaged changes in exactly one file between the "checkout" and "run" parts of that. | 20:48 |
|
| maybe I'm looking at the problem backwards and I should build a list of paths before calling diff-index (excluding that one file) | 20:49 |
|
acki_
| is there a page descripting the industry standard of versioning? | 20:49 |
|
ikke
| acki_: You know the problem of standards? | 20:49 |
|
SnoopJ
| which one? :P | 20:49 |
|
ikke
| SnoopJ: exactly :D | 20:50 |
|
| There is no single standard | 20:50 |
| ← gunner left | 20:50 |
| → jinsl joined | 20:51 |
|
SnoopJ
| I think if I run `git diff-index ... --name-only` first, I can use the resulting list of paths to do what I am after. Possibly my initial question was the wrong one anyway, excluding the file won't protect it from the subsequent checkout (thinking out loud, sorry) | 20:53 |
| → gunner joined | 20:53 |
| → lionkor joined | 20:54 |
| → wallabra joined | 20:55 |
|
wallabra
| How can I sync a repository across multiple providers (GitHub and Codeberg) without having to do endless merges? | 20:58 |
|
another|
| multiple remotes? | 21:00 |
| ← tdodrlt^ left | 21:03 |
|
wallabra
| yeah | 21:03 |
|
| I could also use multi-URL remotes, but what if someone contributes a change on one of the remotes? | 21:04 |
| ← nickel715 left | 21:05 |
|
ikke
| If both remotes receive changes, there is not a lot you can do except merging | 21:07 |
| ← adanwan left | 21:10 |
| ← john_johnk left | 21:10 |
| → adanwan joined | 21:10 |
| ← adanwan left | 21:13 |
| → adanwan joined | 21:14 |
| → tdodrlt^ joined | 21:15 |
| → mven joined | 21:18 |
| → arescorpio joined | 21:19 |
| ← EvilDMP left | 21:21 |
| → EvilDMP joined | 21:22 |
| → foul_owl joined | 21:26 |
| ← mgubyt left | 21:29 |
| ← gunner left | 21:31 |
| ← arescorpio left | 21:39 |
| ← oprypin left | 21:42 |
| → oprypin joined | 21:42 |
| ← tdodrlt^ left | 21:42 |
| ← kenanmarasli left | 21:45 |
| ← n0rw4l1 left | 21:54 |
| → n0rw4l1 joined | 21:55 |
| ← acebrianjuan left | 21:56 |
| → dodobrain joined | 21:58 |
| → hello-smile6 joined | 21:59 |
| → aidalgol_ joined | 22:00 |
| ← aidalgol left | 22:01 |
| ← mfiano left | 22:04 |
| hello-smile6 → hello-smile | 22:05 |
| hello-smile → _9pfs | 22:05 |
| → tdodrlt^ joined | 22:06 |
| → rgrinberg joined | 22:07 |
| → smallville7123_ joined | 22:12 |
| ← smallville7123 left | 22:15 |
| → mfiano joined | 22:15 |
| → nate4 joined | 22:16 |
| → YuGiOhJCJ joined | 22:20 |
| ← nate4 left | 22:22 |
| ← mon_aaraj left | 22:32 |
| → mon_aaraj joined | 22:34 |
| → Betal joined | 22:38 |
| ← dionysus69 left | 22:39 |
| ← The_Blode left | 22:45 |
| → zeenk joined | 22:47 |
| ← YoungFrog left | 22:49 |
| → YoungFrog joined | 22:51 |
| ← acki_ left | 22:51 |
| ← feriman left | 22:55 |
| → mgubyt joined | 22:56 |
| ← YoungFrog left | 22:57 |
| → aidalgol joined | 22:58 |
| ← aidalgol_ left | 22:58 |
| → YoungFrog joined | 22:59 |
| ← pflanze left | 22:59 |
| → pflanze joined | 22:59 |
| ← aidalgol left | 23:02 |
| ← YoungFrog left | 23:06 |
| ← zeenk left | 23:07 |
| → Murr- joined | 23:08 |
| ← Murr left | 23:09 |
| Murr- → Murr | 23:09 |
| → YoungFrog joined | 23:09 |
| ← YoungFrog left | 23:14 |
| → YoungFrog joined | 23:15 |
| ← adanwan left | 23:16 |
| → adanwan joined | 23:16 |
| → aidalgol joined | 23:29 |
| ← toluene left | 23:36 |
| ← Lord_of_Life left | 23:39 |
| → Lord_of_Life_ joined | 23:39 |
| → toluene joined | 23:40 |
| Lord_of_Life_ → Lord_of_Life | 23:40 |
| ← dodobrain left | 23:42 |
| → dodobrain joined | 23:43 |
| → ferdna joined | 23:44 |
| wallabra → wallabra_ | 23:44 |
| wallabra_ → wallabra | 23:44 |
| ← pretty_dumm_guy left | 23:52 |
| ← tdodrlt^ left | 23:56 |
| ← X-Scale left | 23:59 |