| 2020-06-28 |
| ← bolovanos left | 00:04 |
| ← tiin57 left | 00:08 |
| → tiin57 joined | 00:11 |
| ← _cipher left | 00:18 |
| ← SwiftMatt left | 00:19 |
| ← m0viefreak left | 00:20 |
| → Muimi joined | 00:21 |
| → dedowsdi joined | 00:21 |
| ← _Vi left | 00:24 |
| → MarioMey joined | 00:25 |
| ← dedowsdi left | 00:31 |
| → SwiftMatt joined | 00:32 |
| ← squirrel left | 00:33 |
| ← theorangeone left | 00:34 |
| → bambanx joined | 00:34 |
| → darkbit joined | 00:37 |
| ← tiin57 left | 00:38 |
| ← qpdb left | 00:38 |
| → qpdb joined | 00:38 |
| ← Serus left | 00:41 |
| → tiin57 joined | 00:41 |
| ← NeoCron left | 00:46 |
| → oatmealraisin joined | 00:51 |
| → maryo joined | 00:52 |
| ← maryo_t left | 00:55 |
| → squirrel joined | 00:58 |
| → dedowsdi joined | 00:59 |
| → _0xDEADBEEF joined | 01:00 |
| ← _0xDEADBEEF left | 01:05 |
| ← Samian left | 01:05 |
| ← d1b left | 01:07 |
| ← tiin57 left | 01:08 |
| → d1b joined | 01:08 |
| → tiin57 joined | 01:12 |
| → seaef joined | 01:12 |
| → pmcnabb0 joined | 01:13 |
| ← wyre left | 01:14 |
| ← segnior left | 01:15 |
| ← pmcnabb left | 01:15 |
| pmcnabb0 → pmcnabb | 01:15 |
| → wyre joined | 01:15 |
| → segnior joined | 01:15 |
| → Muimi_ joined | 01:19 |
| ← Muimi left | 01:22 |
| Muimi_ → Muimi | 01:22 |
| → libertyprime joined | 01:24 |
| → rook_flood joined | 01:24 |
|
rook_flood
| hi folks. does `git push --dry-run` send non-error output to stdout? if not, where does it go? | 01:25 |
| → doublex_ joined | 01:25 |
| ← AtumT_ left | 01:28 |
| → wymillerlinux joined | 01:29 |
| ← lukd left | 01:30 |
| → lukd joined | 01:31 |
| → Serus joined | 01:33 |
| ← inkbottle left | 01:35 |
| → inkbottle joined | 01:36 |
| ← tiin57 left | 01:38 |
| ← bocaneri left | 01:38 |
| → tiin57 joined | 01:41 |
| ← seaef left | 01:41 |
| ← stux|RC left | 01:41 |
| → stux|RC joined | 01:44 |
| ← SuperLag left | 01:44 |
| → orbyt_ joined | 01:48 |
| → bocaneri joined | 01:51 |
| ← Hello71 left | 02:02 |
| → Hello71 joined | 02:04 |
| → waveclaw joined | 02:06 |
| ← tiin57 left | 02:08 |
| ← lagothrix left | 02:09 |
| → lagothrix joined | 02:09 |
| → tiin57 joined | 02:11 |
| ← SwiftMatt left | 02:12 |
| → causasui joined | 02:15 |
| → SwiftMatt joined | 02:18 |
| → CodeSlingerPaul joined | 02:23 |
| ← CodeSlingerPaul left | 02:28 |
| ← Cabanossi left | 02:30 |
| ← rafasc left | 02:33 |
| ← inkbottle left | 02:35 |
| → Cabanossi joined | 02:35 |
| → inkbottle joined | 02:35 |
| ← tiin57 left | 02:38 |
| ← Muimi left | 02:39 |
| → tiin57 joined | 02:41 |
| → blahboybaz joined | 02:44 |
|
rook_flood
| /go jazz | 02:56 |
| ← SwiftMatt left | 02:56 |
| ← tiin57 left | 03:07 |
|
blahboybaz
| What s happening when you do $ git rebase <branchname> ? Is it rebasing the branch you are on onto <branchname> ? | 03:09 |
| → tiin57 joined | 03:12 |
| ← lucasb left | 03:23 |
| ← theoceaniscool left | 03:26 |
| → ferdna joined | 03:27 |
| → gxt_ joined | 03:32 |
|
rook_flood
| blahboybaz: yeah, it "plays back" your branch on top of whatever is in <branchname> | 03:33 |
|
blahboybaz
| rook_flood: So it puts the branch I'm on (have checked out) onto the branch I name in the command | 03:34 |
|
| ? | 03:34 |
| ← waveclaw left | 03:34 |
| ← iam730 left | 03:34 |
|
blahboybaz
| For example, I'f I'm on master and have a development branch that is a couple commits ahead of master, I do a | 03:35 |
| ← gxt left | 03:35 |
|
blahboybaz
| I do a $ git rebase development and master is moved onto the tip of development? | 03:35 |
| → iam730 joined | 03:37 |
| ← tiin57 left | 03:38 |
|
blahboybaz
| I'm having a diffictult time telling what is happening in the operation. If I do what I described above I can still checkout the development branch after the operation is performed (so the development branch must still be there) and I can checkout the mater branch again too (so the master branch must still be there). | 03:38 |
|
| Is it just placeing a copy (since the branch is still there it must not get deleted) | 03:38 |
|
Marmotte
| if you are on master and run "git rebase development", this will reset master on the last commit of development, then replay all commits that were on master but not on development on top of this "new" master | 03:39 |
|
| after the operation, development will not be modified, and master will be like "development + some commits from master" | 03:39 |
| ← thiago left | 03:40 |
| → tiin57 joined | 03:41 |
| ← darkbit left | 03:41 |
| → freshpassport joined | 03:42 |
|
rook_flood
| blahboybaz: what Marmotte said and also: think of branch names as references to points in history in a graph representing all histories that your repository knows about | 03:43 |
| → darkbit joined | 03:43 |
| ← bambanx left | 03:47 |
|
blahboybaz
| I"m not sure I'm understainding a few words being used in the post. Marmotte: "reset" (is this a keyword or something? What action is it referring to?). And "replay" (is this a keyword or something? What action is it referring to?). And, so let me get this straight. For example: Suppose master has 2 commits - z and x, and suppose development has 3 commits a, b, and c and I $ git rebase development when on master. I will | 03:50 |
|
| ultimately end up with a master branch that has commits z, x, a, b, and c and a development branch that remains the same with commits a, b, and c ? Furthermore the develpmnent branch continues to have the same ancestor (branching point) as it did beofore the rebase? | 03:50 |
| ← kleisli__ left | 03:52 |
| → YuGiOhJCJ joined | 03:52 |
| → kleisli joined | 03:52 |
| ← pac1 left | 03:52 |
|
Marmotte
| development will not be modified, like rook_flood said, think of it as a shortcut to name the last commit of that branch | 03:53 |
|
| if your master branch is "o - z - x" and development is "o - a - b - c", then running "git rebase development" from master will change master to "o - a - b - c - z - x" | 03:54 |
| ← wymillerlinux left | 03:55 |
|
blahboybaz
| Well I would have never thought of that | 03:55 |
| ← orbyt_ left | 03:56 |
|
blahboybaz
| Marmotte: And the development branch remains as it was and is o-a-b-c then? | 03:56 |
| → bavi joined | 03:56 |
|
Marmotte
| exactly | 03:57 |
|
blahboybaz
| still have two independent branches after the rebase right? A development branch as it was before (o-a-b-c) and a master that is now o-a-b-c-z-x | 03:57 |
|
| ok | 03:57 |
|
Marmotte
| rebase is simple "pick a branch, overwrite my current branch with that, and redo commits that were on my current branche but not on the other" | 03:58 |
|
blahboybaz
| Why does it inserte the development branch content at the point where development branches off of master as opposed to appending it to the end of master? | 03:58 |
|
| inserte\insert | 03:59 |
|
| In other words I would have thought that master would end up as o--z-x-a-b-c not o - a - b - c - z - x | 04:00 |
|
Marmotte
| "git rebase development" means "recreate my current branch based on development branch" | 04:00 |
| ← EmmaT left | 04:00 |
|
Marmotte
| what you describe can be achieved using cherry-pick :) | 04:01 |
|
blahboybaz
| That's fine. I just wondered why it inteposes / inserts it at a point than glues it to the tip but ok | 04:01 |
| ← veegee left | 04:04 |
| ← watabou left | 04:04 |
| → watabou joined | 04:05 |
| → EmmaT joined | 04:06 |
|
blahboybaz
| Then what is the difference between $ git rebase <branch> and $ git merge --no-ff <branch> ? | 04:06 |
|
| I tried both in separate test repos and $ git merge --no-ff <branch> seemed to have an additional commit (the merge commit) but I couldn't tell what was happening to branches comparatively | 04:07 |
| ← tiin57 left | 04:08 |
| → tiin57 joined | 04:11 |
| ← libertyprime left | 04:13 |
| → libertyprime joined | 04:18 |
| ← kleisli left | 04:19 |
| ← crose left | 04:22 |
| ← prepend left | 04:23 |
| → g00s joined | 04:35 |
| ← inkbottle left | 04:35 |
| → inkbottle joined | 04:35 |
| ← tiin57 left | 04:38 |
| → tiin57 joined | 04:41 |
| ← cbreak left | 04:43 |
| → cbreak joined | 04:44 |
| ← xcm left | 04:44 |
| → kleisli joined | 04:44 |
| ← kegster left | 04:49 |
| → kegster joined | 04:52 |
| ← dedowsdi left | 04:53 |
| ← hussar left | 04:54 |
| → bitwinery joined | 05:05 |
| ← bitwinery left | 05:06 |
| → bitwinery joined | 05:06 |
| ← tiin57 left | 05:08 |
| → tiin57 joined | 05:11 |
| ← causasui left | 05:14 |
| → st-gourichon-fid joined | 05:16 |
| ← g4570n left | 05:22 |
| ← bitwinery left | 05:30 |
| → maryo_s joined | 05:36 |
| ← tiin57 left | 05:37 |
| ← ShapeShifter499 left | 05:38 |
| → ShapeShifter499 joined | 05:38 |
| ← maryo left | 05:40 |
| → tiin57 joined | 05:41 |
| ← leah2 left | 05:41 |
| → [Brain] joined | 05:49 |
| ← MarioMey left | 05:50 |
| → MarioMey joined | 05:50 |
| → dedowsdi joined | 05:51 |
| ← Brain left | 05:52 |
| ← g00s left | 05:53 |
| → leah2 joined | 05:54 |
| → Muimi joined | 05:57 |
| ← libertyprime left | 06:01 |
| ← sudoforge left | 06:06 |
| ← tiin57 left | 06:08 |
| → tiin57 joined | 06:12 |
| → snowkidimd joined | 06:20 |
| ← Goplat left | 06:20 |
| ← umask077 left | 06:23 |
| → kleisli_ joined | 06:24 |
| → Guest20 joined | 06:25 |
| ← kleisli left | 06:26 |
| ← blahboybaz left | 06:33 |
| ← tiin57 left | 06:38 |
| ← gavlee left | 06:38 |
| → gavlee joined | 06:39 |
| ← kupi left | 06:39 |
| → Tawonga_ joined | 06:39 |
| → jaziz1 joined | 06:40 |
| ← Tawonga left | 06:40 |
| → tiin57 joined | 06:41 |
| → tgunr joined | 06:42 |
| → Brain joined | 06:46 |
| ← [Brain] left | 06:49 |
| → xcm joined | 06:53 |
| → geowiesnot joined | 06:53 |
| ← maryo_s left | 06:56 |
| → dfee joined | 07:01 |
| ← Heirlung left | 07:03 |
| → calcul0n joined | 07:06 |
| → mightyjens joined | 07:07 |
| ← tiin57 left | 07:08 |
| → umask077 joined | 07:10 |
| → tiin57 joined | 07:11 |
| → Heirlung joined | 07:11 |
| ← geowiesnot left | 07:14 |
| → SwiftMatt joined | 07:28 |
| ← st-gourichon-fid left | 07:29 |
| ← dfee left | 07:30 |
| → vdamewood joined | 07:31 |
| ← inkbottle left | 07:35 |
| → inkbottle joined | 07:35 |
| ← SwiftMatt left | 07:37 |
| ← tiin57 left | 07:37 |
| → feriman joined | 07:40 |
| ← lankanmon left | 07:40 |
| → quetz joined | 07:41 |
| → tiin57 joined | 07:41 |
| → lankanmon joined | 07:42 |
| → TheWild joined | 07:42 |
| ← freshpassport left | 07:44 |
| ← bocaneri left | 07:46 |
| ← Betal left | 07:47 |
| → bolovanos joined | 07:52 |
| ← MarioMey left | 07:54 |
| ← mat001 left | 07:56 |
| ← Guest20 left | 07:58 |
| → bocaneri joined | 07:59 |
| ← bocaneri left | 07:59 |
| → g00s joined | 08:02 |
| ← otisolsen70__ left | 08:04 |
| → bocaneri joined | 08:05 |
| → hamess joined | 08:05 |
|
hamess
| weird question but can i undo a "git restore"? | 08:05 |
| ← tiin57 left | 08:08 |
| → seaef joined | 08:08 |
| → NeoCron joined | 08:09 |
| ← xcm left | 08:11 |
| → tiin57 joined | 08:11 |
| ← ferdna left | 08:18 |
| ← bolovanos left | 08:21 |
| ← seaef left | 08:23 |
| → shush joined | 08:30 |
| → xcm joined | 08:31 |
| ← shush left | 08:34 |
| → haslo joined | 08:35 |
| ← tiin57 left | 08:38 |
| → tiin57 joined | 08:41 |
| → st-gourichon-fid joined | 08:42 |
| ← bavi left | 08:43 |
| → [Brain] joined | 08:45 |
| ← mightyjens left | 08:46 |
| ← Brain left | 08:47 |
| ← hqdruxn08_ left | 08:57 |
| → bolovanos joined | 08:57 |
| ← caskd left | 08:57 |
| → dfee joined | 08:57 |
| ← dfee left | 08:58 |
| → hqdruxn08 joined | 08:59 |
| → caskd joined | 08:59 |
| → oragadam joined | 09:03 |
| → Brain joined | 09:06 |
| ← tiin57 left | 09:08 |
| ← [Brain] left | 09:09 |
| ← YuGiOhJCJ left | 09:11 |
| → tiin57 joined | 09:11 |
|
zatumil
| undo? | 09:12 |
| → Guest20 joined | 09:12 |
|
ikke
| If it discarded any uncommitted changes, then no | 09:17 |
|
hamess
| dang | 09:19 |
|
| ty | 09:19 |
| ← hamess left | 09:19 |
| → hamess joined | 09:20 |
|
hamess
| part | 09:20 |
| ← hamess left | 09:20 |
| → SwiftMatt joined | 09:24 |
| ← lightstalker left | 09:27 |
| ← SwiftMatt left | 09:33 |
| ← Atlenohen left | 09:35 |
| ← Shentino left | 09:37 |
| → lightstalker joined | 09:37 |
| ← tiin57 left | 09:37 |
| → SwiftMatt joined | 09:40 |
| → Shentino joined | 09:41 |
| → tiin57 joined | 09:41 |
| ← xcm left | 09:42 |
| → xcm joined | 09:42 |
| ← SwiftMatt left | 09:43 |
| ← gxt_ left | 09:45 |
| → nQk joined | 09:46 |
|
nQk
| I did a "git stash apply" but there is a conflict with two files. How can I view the stashed version? | 09:46 |
|
| Oh, I noticed there are comments in those files | 09:47 |
| → [Brain] joined | 09:47 |
| → libertyprime joined | 09:48 |
| ← Brain left | 09:49 |
|
nQk
| disregarding the comments, does the file contain all the code from both stash and normal version? | 09:49 |
| ← foul_owl left | 09:50 |
|
nQk
| what does the ======= mean exactly? | 09:50 |
| ← Guest20 left | 09:52 |
| → wxg joined | 09:58 |
| → theorangeone joined | 10:03 |
| → foul_owl joined | 10:06 |
| ← watabou left | 10:06 |
| ← tiin57 left | 10:08 |
| → tiin57 joined | 10:11 |
| ← nQk left | 10:16 |
| ← oragadam left | 10:18 |
| ← g00s left | 10:23 |
| ← wxg left | 10:25 |
|
TheWild
| folks, I was having fun playing with git's low level mechanics. | 10:26 |
|
| Can the whole repository (okay, without config) be reconstructed having just the output of "git cat-file --batch --batch-all-objects" and "git for-each-ref"? | 10:26 |
| → shush joined | 10:31 |
| ← andy25225 left | 10:31 |
| → freddieptf joined | 10:31 |
| ← shush left | 10:35 |
| ← tiin57 left | 10:38 |
| ← xcm left | 10:38 |
| → xcm joined | 10:38 |
| ← magic_ninja left | 10:41 |
| → tiin57 joined | 10:41 |
| → andy25225 joined | 10:42 |
| → oragadam joined | 10:44 |
| ← freddieptf left | 10:46 |
| ← TheWild left | 10:49 |
| ← calcul0n left | 10:50 |
| → calcul0n joined | 10:52 |
| ← tgunr left | 10:55 |
| → tgunr joined | 10:58 |
| → freddieptf joined | 11:05 |
| ← freddieptf left | 11:07 |
| ← tiin57 left | 11:07 |
| ← oragadam left | 11:08 |
| ← SWAT left | 11:08 |
| → freddieptf joined | 11:08 |
| ← akem left | 11:08 |
| → emmanuelux joined | 11:09 |
| → tiin57 joined | 11:11 |
| ← zatumil left | 11:12 |
| → TheWild joined | 11:15 |
| → SWAT joined | 11:16 |
| ← xcm left | 11:21 |
| → xcm joined | 11:21 |
| ← vdamewood left | 11:25 |
| → wildlander joined | 11:28 |
|
canton7
| TheWild, reconstructed in what sense? | 11:30 |
|
| TheWild, ah I see. I'd suspect so, although you'd need to play around with the output of git for-each-ref a bit to make sure you've got all the information you need | 11:32 |
| ← mebus left | 11:36 |
| ← tiin57 left | 11:38 |
| → aw1 joined | 11:38 |
| → tiin57 joined | 11:41 |
| → suffer joined | 11:42 |
| → m0viefreak joined | 11:47 |
| ← jetchisel left | 11:48 |
| → Phylock joined | 11:59 |
| → freshpassport joined | 12:00 |
| ← bolovanos left | 12:03 |
| ← tiin57 left | 12:08 |
| ← cliluw left | 12:10 |
| → cliluw joined | 12:10 |
| → tiin57 joined | 12:11 |
| ← m0viefreak left | 12:12 |
| ← Phylock left | 12:13 |
| → bkuhlmann joined | 12:14 |
| → theoceaniscool joined | 12:16 |
|
rook_flood
| hi folks. does `git push --dry-run` send the non-error output to stdout? if not, where does it go? | 12:16 |
| ← bkuhlman_ left | 12:17 |
| ← freddieptf left | 12:17 |
| → Brain joined | 12:19 |
| ← andy25225 left | 12:19 |
| → _0xDEADBEEF joined | 12:21 |
| ← [Brain] left | 12:22 |
| ← Ignacy left | 12:24 |
| ← rustyshackleford left | 12:24 |
| → Phylock joined | 12:25 |
| → [Brain] joined | 12:28 |
| → andy25225 joined | 12:29 |
| ← Brain left | 12:30 |
| → osse joined | 12:30 |
| ← Eryn_1983_FL left | 12:30 |
| → shush joined | 12:31 |
| ← shush left | 12:36 |
| → k3yp- joined | 12:37 |
| ← tiin57 left | 12:37 |
| ← k3yp left | 12:38 |
| → Ignacy joined | 12:38 |
| → Eryn_1983_FL joined | 12:38 |
| k3yp- → k3yp | 12:38 |
| → freddieptf joined | 12:40 |
| → tiin57 joined | 12:41 |
| ← osse left | 12:52 |
| ← diogenese left | 12:52 |
| → diogenese joined | 12:53 |
| → Guest20 joined | 12:58 |
| → veegee joined | 13:01 |
| ← f8e4 left | 13:07 |
| ← tiin57 left | 13:07 |
| → tiin57 joined | 13:11 |
| → mat001 joined | 13:12 |
| ← _0xDEADBEEF left | 13:21 |
| → Olipro joined | 13:21 |
| ← xcm left | 13:32 |
| → xcm joined | 13:32 |
| ← tiin57 left | 13:38 |
| ← Guest20 left | 13:38 |
| → tiin57 joined | 13:41 |
| → syr joined | 13:43 |
| ← freddieptf left | 13:44 |
| → sglavoie joined | 13:50 |
| ← sglavoie left | 13:52 |
| ← bocaneri left | 13:54 |
| → freddieptf joined | 13:57 |
| ← freddieptf left | 13:59 |
| → seaef joined | 13:59 |
| ← seaef left | 14:00 |
| → seaef joined | 14:06 |
| → orbyt_ joined | 14:07 |
| → bocaneri joined | 14:07 |
| ← tiin57 left | 14:07 |
| ← maxwilliamson left | 14:09 |
| → maxwilliamson joined | 14:10 |
| → tiin57 joined | 14:11 |
| ← seaef left | 14:17 |
| ← FFY00 left | 14:22 |
| → cd joined | 14:22 |
| → geowiesnot joined | 14:23 |
| → FFY00 joined | 14:23 |
| ← dedowsdi left | 14:26 |
| ← Hello71 left | 14:26 |
| → Hello71 joined | 14:27 |
| ← omfgwhofarted left | 14:29 |
|
j416
| rook_flood: stderr or stdout, if any | 14:31 |
| ← andy25225 left | 14:31 |
| → BPL joined | 14:31 |
| ← freshpassport left | 14:32 |
|
rook_flood
| there is visible output, but I can't seem to grab it from stdout unless I use --porcelain. not sure why | 14:32 |
|
j416
| how are you grabbing it? | 14:33 |
|
| or, well, not grabbing it | 14:33 |
| ← tiin57 left | 14:37 |
| → maryo_s joined | 14:40 |
| → tiin57 joined | 14:41 |
| → andy25225 joined | 14:43 |
| ← Cabanossi left | 14:46 |
| → Goplat joined | 14:47 |
| ← geowiesnot left | 14:50 |
| → Cabanossi joined | 14:50 |
| ← feriman left | 15:00 |
| → g4570n joined | 15:05 |
| → thiago joined | 15:06 |
| ← tiin57 left | 15:07 |
| → crose joined | 15:10 |
| → tiin57 joined | 15:11 |
| ← noclue left | 15:16 |
| ← Hello71 left | 15:18 |
| ← opal left | 15:19 |
| → Hello71 joined | 15:20 |
| → bkuhlman_ joined | 15:21 |
| → opal joined | 15:22 |
| → m0viefreak joined | 15:22 |
| ← theoceaniscool left | 15:23 |
| → _Vi joined | 15:23 |
| ← bkuhlmann left | 15:24 |
|
rook_flood
| j416: executing in a subshell. just a sec, I'll make an example | 15:27 |
| ← opal left | 15:28 |
|
rook_flood
| j416: https://pastebin.com/294kfxCc | 15:29 |
|
m0viefreak
| git push writes to stderr by default. --porcelain it writes to stdout | 15:31 |
| → opal joined | 15:31 |
|
rook_flood
| m0viefreak: thank you. for a command like `git push --dry-run origin master`, I see output like "Everything up-to-date" - any idea where this output is written to? | 15:32 |
|
m0viefreak
| stderr | 15:32 |
|
| output="$(git push --dry-run origin master 2>&1)" | 15:33 |
|
| try this | 15:33 |
| → shush joined | 15:36 |
|
rook_flood
| !! awesome, thank you m0viefreak. this simplifies things. I assumed it worked differently because of a typo elsewhere in my script | 15:36 |
| → PavelB joined | 15:37 |
| ← tiin57 left | 15:37 |
| → MarioMey joined | 15:39 |
| → tiin57 joined | 15:41 |
|
j416
| indeed. | 15:43 |
| ← m0viefreak left | 15:46 |
| → akem joined | 15:46 |
| → m0viefreak joined | 15:46 |
| ← shush left | 15:46 |
| ← iam730 left | 15:50 |
| → dfee joined | 15:51 |
| → ferdna joined | 15:51 |
| → shush joined | 15:52 |
| → iam730 joined | 15:52 |
| ← shush left | 15:57 |
| ← tiin57 left | 16:07 |
| → Newami joined | 16:08 |
| ← Newami left | 16:08 |
| → sudoforge joined | 16:10 |
| → tiin57 joined | 16:11 |
|
esotericnonsense
| what's an efficient way to find the first mention of a pattern in a git repository? I mention efficient specifically because a lot of the answers online seem to basically die on large repos, I want to find out when a flag was added to the linux kernel | 16:20 |
| ← dfee left | 16:25 |
| → shush joined | 16:25 |
| → tinga joined | 16:28 |
| ← shush left | 16:29 |
|
tinga
| Hi. Is there a tool to update broken symlinks in Git repositories? I.e. that go back through history (while tracking movements of the symlink entry itself), find when the symlink wasn't broken, then track the pointed-to file back to the present and replace the symlink with one that points there? | 16:30 |
| ← chiastre_ left | 16:30 |
| ← wrksx left | 16:30 |
| → AtumT joined | 16:34 |
| → chiastre_ joined | 16:35 |
| → wrksx joined | 16:36 |
| ← tiin57 left | 16:37 |
|
tinga
| Does the silence mean that there isn't? :) If so, would you be interested in such a tool? | 16:38 |
| → kupi joined | 16:41 |
| → tiin57 joined | 16:41 |
| → troulouliou_div2 joined | 16:46 |
| ← aw1 left | 16:50 |
| ← vicfred left | 16:54 |
| ← Phylock left | 16:59 |
| → wootehfoot joined | 17:03 |
| ← snowkidimd left | 17:05 |
| ← tiin57 left | 17:07 |
| ← kleisli_ left | 17:08 |
|
j416
| tinga: bisect should be able to help you find when it broke, then you can use filter-branch or the like to fix it | 17:10 |
| → tiin57 joined | 17:11 |
| ← hbnrf left | 17:13 |
| → hbnrf joined | 17:14 |
| → dfee joined | 17:15 |
| → ch1astre joined | 17:15 |
| ← chiastre_ left | 17:15 |
| ← drbean left | 17:17 |
| → Betal joined | 17:17 |
| → drbean joined | 17:17 |
| → oriba joined | 17:29 |
| → lythq joined | 17:35 |
| gitinfo set mode: +v | 17:36 |
| ← tiin57 left | 17:37 |
| → tiin57 joined | 17:41 |
| → bvdw joined | 17:45 |
| → lucasb joined | 17:45 |
| ← tgunr left | 17:46 |
| ← andreas303 left | 17:47 |
| → aw1 joined | 17:49 |
| → andreas303 joined | 17:50 |
| → tgunr joined | 17:52 |
| ← SpeakerToMeat left | 17:56 |
| → SpeakerToMeat joined | 17:57 |
| ← theorangeone left | 17:58 |
| → theorangeone joined | 17:59 |
| → rangergord joined | 18:00 |
| ← SpeakerToMeat left | 18:01 |
|
rangergord
| I'd like to do a search-and-replace on all text files in a directory (recursive), but be prompted for each change to approve it or not. Like, show the line being replaced, ideally with some of the lines before and after for context, then I'm asked to choose whether to apply a replace or move on to the next. | 18:02 |
| → SpeakerToMeat joined | 18:02 |
|
rangergord
| before I write my own script, is there an estblished way of doing this? | 18:02 |
| → paws_ joined | 18:03 |
| → _leb joined | 18:04 |
| ← Ignacy left | 18:05 |
| ← theorangeone left | 18:07 |
| ← tiin57 left | 18:07 |
| → theorangeone joined | 18:07 |
| ← polyrob left | 18:10 |
| → polyrob joined | 18:10 |
| → tiin57 joined | 18:11 |
| ← aw1 left | 18:11 |
| → aw1 joined | 18:12 |
| ← dfee left | 18:14 |
|
nedbat
| rangergord: sounds like a feature of your text editor, not git. | 18:16 |
| ← BPL left | 18:18 |
|
rangergord
| It's for the terminal actually. And it's tangential to git :P | 18:19 |
| ← Muimi left | 18:24 |
|
tinga
| j416, git bisect won't tell me what the current path is to use. Also I don't want to modify history, just make a new commit. | 18:24 |
|
j416
| tinga: what will? | 18:25 |
|
tinga
| j416, what I mean is, track renames. | 18:25 |
|
| I don't know of any tool that does track those except some I wrote myself. | 18:26 |
|
j416
| you mean there's a symlink that references something tracked? | 18:26 |
|
tinga
| Symlinks pointing inside the repository, yes | 18:26 |
|
| local | 18:26 |
|
j416
| rename detection isn't exact, so you may want human eyes on it anyway | 18:26 |
| → BPL joined | 18:26 |
|
j416
| sounds like a handy tool, if you have a lot of symlinks that you tend to forget you have. | 18:27 |
|
tinga
| R100 is exact and if the tool does just those I'm already happy | 18:27 |
| → watabou joined | 18:27 |
|
j416
| tinga: it could be a deletion and an addition without intention of rename | 18:27 |
|
| perhaps unlikely, but possible | 18:27 |
|
tinga
| In connection with the symlink target disappearing it should be pretty unproblematic. | 18:28 |
|
j416
| but since you're not modifying history that's probably good enough; even with a lower similarity. | 18:28 |
|
| perhaps it would be sufficient to have a tool that'd find all symlinks and when/if they broke. | 18:29 |
|
tinga
| I'd love if it tracked the moves of the targets and sources from breakage points on, too. | 18:30 |
|
j416
| updating them would of course be a nice-to-have. | 18:30 |
|
tinga
| This is a wiki style repository and has about 1000 symlinks and 5000 targets; there is tons of moving of stuff going on. | 18:30 |
|
j416
| whoa. | 18:31 |
|
tinga
| So there are many cases where things get renamed multiple times before the broken link is noticed. | 18:31 |
|
j416
| I can see your problem then. | 18:31 |
|
tinga
| More to the point, I'd like to avoid having to update any symlinks manually at all once I've got that tool :) | 18:31 |
|
Hello71
| rangergord: I mean... git add -A; sed whatever; git checkout -p | 18:32 |
|
j416
| tinga: perhaps a checker would be good to have, as a hook or whatnot. | 18:32 |
|
| tinga: so that fewer symlinks are broken to begin with | 18:32 |
|
tinga
| Yeah, given a hook the logic could be a bit simpler (no history tracking). | 18:32 |
|
j416
| or maybe you could generate all the symlinks from scratch | 18:33 |
|
tinga
| Still given that the algorithm is pretty straightforward, given a good API into Git, I was hoping this already exists. | 18:33 |
|
| (the version including looking back.) | 18:33 |
|
| And if it doesn't exist I'm probably going to write it. Not sure in which language though; suggestions welcome. (Rust is pretty solid and fast, but portability/accessibility poor. Perl is probably still used a lot in the core, so perhaps the way to go, but I haven't seen such history tracking functionality there; maybe I should look harder?) | 18:35 |
| ← tiin57 left | 18:37 |
| ← _leb left | 18:38 |
| → Akuli joined | 18:39 |
|
tinga
| (Python? C? Both painful. OCaml? I might do it in the latter/ReasonML since I'm currently learning that.) | 18:40 |
| → tiin57 joined | 18:41 |
|
Akuli
| i have a remote named tp and a branch tp/foo, it shows up in git log --graph --decorate --pretty=oneline --abbrev-commit --all | 18:41 |
|
| but 'git branch -D tp/foo' says "error: branch 'tp/foo' not found" | 18:41 |
| → Ignacy joined | 18:42 |
| → causasui joined | 18:48 |
| → freddieptf_ joined | 18:49 |
| ← _Vi left | 18:51 |
| → bkuhlmann joined | 18:55 |
| ← bkuhlman_ left | 18:59 |
| ← justanotheruser left | 19:01 |
| → voidSurfr joined | 19:03 |
| ← ewomer left | 19:04 |
| → dfee joined | 19:05 |
| ← haslo left | 19:05 |
| ← dfee left | 19:06 |
| ← tiin57 left | 19:07 |
| → tiin57 joined | 19:11 |
| ← bkuhlmann left | 19:15 |
| → vpw joined | 19:16 |
| ← orbyt_ left | 19:19 |
| ← wildlander left | 19:24 |
| ← onizu left | 19:25 |
| ← causasui left | 19:26 |
|
j416
| Akuli: does 'git branch' show it? | 19:26 |
|
Akuli
| no, but 'git branch -a' shows remotes/tp/foo | 19:27 |
|
j416
| then it's a remote tracking branch. | 19:27 |
|
| it's not a local branch. | 19:28 |
|
| (you only have a local read-only copy of it) | 19:28 |
|
Akuli
| is 'git fetch --prune' meant for deleting those? | 19:28 |
|
j416
| indeed | 19:28 |
|
Akuli
| thanks | 19:28 |
|
j416
| you can set fetch.prune to true to have fetch do that by default | 19:28 |
|
| git config --global fetch.prune true | 19:29 |
|
| thiago configures that | 19:30 |
|
thiago
| should probably configure the pull method to rerbase now that it warns us | 19:30 |
| → zatumil joined | 19:31 |
| ← tgunr left | 19:34 |
| ← tiin57 left | 19:37 |
| → tiin57 joined | 19:40 |
| ← random_yanek left | 19:41 |
| ← MarioMey left | 19:42 |
| → Thierry joined | 19:44 |
| ← dmc left | 19:47 |
| ← PavelB left | 19:47 |
| → _Vi joined | 19:47 |
| → MarioMey joined | 19:47 |
| → k3yp- joined | 19:48 |
|
MarioMey
| Hello, there. (16:41:06) MarioMey: I would like to test a pull request: https://github.com/obsproject/obs-studio/pull/2886 | 19:48 |
|
| I don't know how to do it. I compile OBS here, it's no problem. But, my knowledge about git is very short. | 19:48 |
|
| How should I do? | 19:48 |
| ← k3yp left | 19:49 |
| k3yp- → k3yp | 19:49 |
| ← caskd left | 19:49 |
| → orbyt_ joined | 19:49 |
| → dmc joined | 19:51 |
| ← vpw left | 19:51 |
|
TheWild
| bare repository and only fast forwards are accepted. If it is not fast forward, I'm renaming that particular ref slightly so it's not lost. | 19:52 |
|
| then how the hell this happened? | 19:52 |
|
| dangling commit 09bf644cb9972e9665559c59561a8da6f85de651 | 19:52 |
| ← drbean left | 19:53 |
| ← ferdna left | 19:53 |
| → drbean joined | 19:54 |
| → justanotheruser joined | 19:59 |
| ← Thierry left | 20:07 |
| ← tiin57 left | 20:07 |
| → wnbeser joined | 20:08 |
| → tiin57 joined | 20:11 |
| → caskd joined | 20:15 |
| → bamdad joined | 20:17 |
| ← Human_G33k left | 20:19 |
| ← m0viefreak left | 20:20 |
| → Lucas_Gray joined | 20:20 |
| → HumanG33k joined | 20:21 |
| → feriman joined | 20:23 |
| ← paws_ left | 20:23 |
| → Human_G33k joined | 20:27 |
| ← st-gourichon-fid left | 20:28 |
| ← HumanG33k left | 20:28 |
| → mikami joined | 20:30 |
| ← wnbeser left | 20:30 |
| ← mikami left | 20:30 |
| → HumanG33k joined | 20:30 |
| ← Human_G33k left | 20:31 |
| → shush joined | 20:31 |
| → shicks2525 joined | 20:35 |
|
j416
| TheWild: is that on the server? | 20:36 |
|
TheWild
| well, let's check. I'll clone it in some other place | 20:37 |
| ← tiin57 left | 20:37 |
|
j416
| no, did you run fsck on the server, or locally? | 20:37 |
|
TheWild
| well, I have no rights to the server (it's GitHub) | 20:41 |
| → tiin57 joined | 20:41 |
|
j416
| then that commit is local | 20:41 |
|
| it has nothing to do with github | 20:41 |
| ← cbreak left | 20:46 |
| ← maryo_s left | 20:47 |
| → wymillerlinux joined | 20:47 |
| → cbreak joined | 20:47 |
| ← BrianBlaze left | 20:48 |
| ← BPL left | 20:49 |
| ← MarioMey left | 20:57 |
| → BrianBlaze joined | 20:59 |
| → jetchisel joined | 21:00 |
| → rustyshackleford joined | 21:01 |
| ← lythq left | 21:02 |
| → omnireq joined | 21:02 |
| → random_yanek joined | 21:03 |
| ← tiin57 left | 21:07 |
| ← Akuli left | 21:08 |
| → tiin57 joined | 21:10 |
| ← tanuki left | 21:11 |
| → kleisli_ joined | 21:17 |
| → ferdna joined | 21:18 |
| ← tango_ left | 21:18 |
| → tango_ joined | 21:25 |
| ← bocaneri left | 21:32 |
| ← quetz left | 21:32 |
| ← drbean left | 21:33 |
| → drbean joined | 21:33 |
| ← shush left | 21:34 |
| ← tango_ left | 21:35 |
| ← wymillerlinux left | 21:36 |
| ← ferdna left | 21:37 |
| ← tiin57 left | 21:37 |
| → wymillerlinux joined | 21:38 |
| ← foul_owl left | 21:38 |
| → morph joined | 21:38 |
| → nessonic joined | 21:40 |
| → tiin57 joined | 21:40 |
| → gxt_ joined | 21:42 |
| ← lightstalker left | 21:45 |
| → mowcat joined | 21:46 |
| ← freddieptf_ left | 21:46 |
| → bocaneri joined | 21:48 |
| → foul_owl joined | 21:52 |
| ← tejr left | 21:52 |
| ← gschanuel left | 21:54 |
| → lightstalker joined | 21:55 |
| ← justanotheruser left | 21:55 |
| → tejr joined | 21:58 |
| ← kupi left | 22:00 |
| → g00s joined | 22:03 |
| ← tiin57 left | 22:07 |
| → tango_ joined | 22:08 |
| → Human_G33k joined | 22:10 |
| → tiin57 joined | 22:11 |
| ← HumanG33k left | 22:14 |
| → geowiesnot joined | 22:15 |
| → PavelB joined | 22:16 |
| ← feriman left | 22:16 |
| ← foul_owl left | 22:21 |
| ← tango_ left | 22:21 |
| ← geowiesnot left | 22:23 |
| → wnbeser joined | 22:24 |
| → shush joined | 22:29 |
| ← wnbeser left | 22:30 |
| ← nessonic left | 22:32 |
| ← calcul0n left | 22:33 |
| → foul_owl joined | 22:34 |
| ← Ignacy left | 22:36 |
| ← tiin57 left | 22:37 |
| ← Zumochi left | 22:39 |
| → tiin57 joined | 22:41 |
| ← darkbit left | 22:44 |
| ← sudoforge left | 22:50 |
| ← g00s left | 22:51 |
| ← kjartan left | 22:53 |
| → kjartan joined | 22:54 |
| → sudoforge joined | 22:57 |
| → lainon joined | 22:57 |
| ← mowcat left | 22:58 |
| → mowcat joined | 22:58 |
| ← NeoCron left | 23:00 |
| → fstd_ joined | 23:02 |
| ← mowcat left | 23:03 |
| → mowcat joined | 23:03 |
| ← aw1 left | 23:06 |
| ← yuljk left | 23:06 |
| ← fstd left | 23:07 |
| fstd_ → fstd | 23:07 |
| → yuljk joined | 23:07 |
| ← omnireq left | 23:07 |
| ← tiin57 left | 23:07 |
| → omnireq joined | 23:07 |
| ← _Vi left | 23:09 |
| → nicolas17 joined | 23:09 |
| → justanotheruser joined | 23:10 |
| ← wymillerlinux left | 23:10 |
| → tiin57 joined | 23:11 |
|
nicolas17
| what's going on here? | 23:11 |
|
| "git clone https://invent.kde.org/utilities/krusader" | 23:11 |
|
| "git branch --contains bb76da596" shows that commit hash is reachable from master | 23:11 |
|
| "git show --stat bb76da596" shows that commit modifies krusader/org.kde.krusader.appdata.xml | 23:12 |
|
| "git log -- krusader/org.kde.krusader.appdata.xml | grep bb76da596" but git log restricted to that path doesn't return that commit | 23:12 |
| ← hexnewbie left | 23:13 |
| ← lainon left | 23:14 |
| → Technodrome joined | 23:15 |
| ← andy25225 left | 23:16 |
| → F0rTex joined | 23:19 |
| ← storrgie left | 23:21 |
| → storrgie joined | 23:22 |
| ← voidSurfr left | 23:22 |
| ← Technodrome left | 23:23 |
| ← AtumT left | 23:23 |
| → voidSurfr joined | 23:23 |
|
nicolas17
| ahh turns out history simplification is doing this... | 23:26 |
| → dedowsdi joined | 23:26 |
|
nicolas17
| bb76da596 made changes in a side branch, and when the branch was merged into master, those changes were dropped (-s ours?) so they are indeed not relevant to explaining the current state of the file | 23:26 |
|
| --full-history avoids that commit pruning | 23:27 |
| → Technodrome joined | 23:30 |
| ← ShapeShifter499 left | 23:31 |
| → ShapeShifter499 joined | 23:31 |
| → pinpox joined | 23:33 |
| ← voidSurfr left | 23:33 |
| → _7C00h joined | 23:36 |
| → fission6 joined | 23:37 |
| ← tiin57 left | 23:37 |
|
fission6
| i did a git merge into a branch and carried a bunch of changes i didn't expect -- then pushed the branch up to git, how can i undo the merged changes and push back upstream | 23:38 |
| → tiin57 joined | 23:41 |
| → vicfred joined | 23:44 |
| ← nicolas17 left | 23:45 |
| ← fission6 left | 23:49 |
| ← libertyprime left | 23:51 |
| → Ignacy joined | 23:53 |
| ← downunder left | 23:55 |
| ← shush left | 23:56 |
| → downunder joined | 23:57 |
| → libertyprime joined | 23:58 |
| → igemnace joined | 23:59 |