| 2019-01-18 |
| ← surfist left | 00:00 |
| ← sanscoeur left | 00:00 |
| → surfist joined | 00:00 |
| ← sanscoeu_ left | 00:01 |
| → Kaisyu joined | 00:02 |
| → peacememories joined | 00:02 |
| ← finalbeta left | 00:04 |
| ← dpyro left | 00:05 |
| → dpyro joined | 00:08 |
| ← andietnad left | 00:10 |
| ← thatpythonguy left | 00:15 |
| ← hbautista left | 00:19 |
| → BenderRodriguez joined | 00:20 |
| ← spacesuitdiver left | 00:24 |
| ← DolphinDream left | 00:24 |
| → beatzz joined | 00:25 |
| ← n3wborn left | 00:26 |
| ← thiago left | 00:28 |
| ← elsheepo left | 00:29 |
| ← Noodlewitt left | 00:32 |
| → Noodlewitt joined | 00:32 |
| → andyhuzhill joined | 00:35 |
| → xrexeon joined | 00:35 |
| ← jstein left | 00:35 |
| ← topdownjimmy left | 00:36 |
| → topdownjimmy joined | 00:36 |
| ← cdown left | 00:38 |
| ← matsaman left | 00:39 |
| → Raed joined | 00:41 |
| ← irdr left | 00:43 |
| → irdr joined | 00:43 |
| ← elichai2 left | 00:45 |
| Disconsented_ → Disconsented | 00:45 |
| ← venmx left | 00:47 |
| → DolphinDream joined | 00:50 |
| ← peacememories left | 00:50 |
| ← manuelschneid3r left | 00:50 |
| → horribleprogram joined | 00:50 |
| ← yyy left | 00:52 |
|
Zexaron
| hello | 00:55 |
|
| before I push I would want to compare diff between two branches | 00:55 |
|
| that's using git diff or is there any "prepush preview" feature that could be handy? | 00:56 |
|
| like git push --checkdiff | 00:56 |
|
| I'll see git push | 00:57 |
| ← akushner left | 00:58 |
| → Tibian joined | 00:59 |
| ← dfee left | 00:59 |
| ← jrnieder left | 01:00 |
| ← Tibian left | 01:02 |
|
bremner
| Zexaron: git diff origin/branchname, for example | 01:03 |
|
| or git log origin/branchname.. | 01:03 |
| → ferdna joined | 01:04 |
| ← DolphinDream left | 01:05 |
|
Zexaron
| bremner: oh sorry, diff betewen commits of these two branches, not the whole branch, but it worked, it's just a LOT because i'm comparing 4 months of master changes | 01:06 |
|
rewt
| `git diff <ref> <ref>` will diff the 2 refs | 01:09 |
|
bremner
| if the second command gives you the commits in HEAD but not in the remote branch | 01:09 |
| ← causasui left | 01:09 |
| ← \void left | 01:10 |
| → thatpythonguy joined | 01:10 |
|
Zexaron
| github shows different hash than git local, that normal ? | 01:13 |
|
toothe
| it is if you have different commits | 01:14 |
|
| otherwise, no | 01:14 |
|
Zexaron
| I'm looking at the log at the same date it is on github | 01:14 |
|
toothe
| is the commit message the same? | 01:15 |
| → DolphinDream joined | 01:15 |
|
Zexaron
| yes | 01:16 |
|
| well, I made a new branch based off the remote branch because the original I deleted locally | 01:17 |
|
| I also rebased | 01:18 |
| ← Puffball left | 01:18 |
| ← mat001 left | 01:19 |
|
Zexaron
| i used log before rebase, i can see the commit being the same hash, rebasing makes new hash on totally unchanged commit | 01:19 |
|
| well, it may have been changed during something rebase did i guess, I wasn't editing any conflicts manually | 01:20 |
| ← Sasazuka left | 01:20 |
| ← m0viefreak left | 01:21 |
|
Zexaron
| rewt: i did git diff hash1 hash2 and it didn't work, still compares full branch | 01:23 |
|
| I need to refresh what <ref> is lol | 01:24 |
| → Wetmelon joined | 01:25 |
| ← ngui left | 01:25 |
| → ngui joined | 01:26 |
| ← DolphinDream left | 01:28 |
| ← ngui left | 01:30 |
| → ngui joined | 01:30 |
|
rewt
| hashes are refs | 01:30 |
|
| what do you mean by compares the full branch? | 01:31 |
|
| a branch is just a pointer to a commit | 01:31 |
|
| if you mean compares all files, then yes, that's expected, because each git commit is basically a snapshot of the working tree | 01:31 |
|
| if you want to only diff certain files, you can do `git diff <ref> <ref> -- <file>` | 01:32 |
|
Zexaron
| okay it does differently now that I put 3 dots in middle | 01:32 |
|
| hash...hash | 01:32 |
|
rewt
| the triple-dot means compare the 2nd ref to the last common ancestor of the 2 refs... basically what changed in ref2 since the branches diverged | 01:33 |
|
Zexaron
| but it always diffs the whole branch, what I mean is, it starts from begining such as .cmake or .md ... like totally off what i need | 01:34 |
| → akushner joined | 01:34 |
|
Zexaron
| one of the refs is on remote branch | 01:34 |
|
| but it exists locally inside the log ofcourse, before I rebased | 01:34 |
|
| range-diff was outputting commit names ... so that doesn't count | 01:35 |
|
rewt
| yes, so if you `git diff master featurebranch`, and there were merges into master since featurebranch was created, then those would also show in that diff... but if you `git diff master...featurebranch`, those additional merges into master would not show up | 01:36 |
| → llinguini joined | 01:36 |
|
rewt
| i think that may have been what you saw | 01:36 |
| ← Peetz0r left | 01:38 |
| → jstimm joined | 01:39 |
| → igemnace joined | 01:39 |
|
Zexaron
| there's little difference in any case I made so far | 01:43 |
|
| with one hash, two hasehes, 3 dots, 2 dots | 01:44 |
| ← beatzz left | 01:45 |
| ← ngui left | 01:45 |
| → beatzz joined | 01:45 |
|
Zexaron
| rewt: infact, the output is the same no matter what I enter | 01:45 |
|
| doesn't even need to be a valid hash | 01:46 |
| ← CodeSlingerPaul left | 01:46 |
|
Zexaron
| i entered 3eu29u293u2929u and got the same output, gibberish | 01:46 |
| ← boombatower left | 01:46 |
|
Zexaron
| okay sorry, I did it only now | 01:46 |
|
| that didn't work, looks like it does work if the part of the has is missing, it still recognizes it as valid | 01:47 |
|
| so I guess nevermind | 01:47 |
|
rewt
| yes, hashes can be shortened as long as they stay unique in the repo | 01:47 |
|
Zexaron
| Well none of the suggestions, do you have any ideas what else can I do ? | 01:48 |
|
rewt
| even in huge repos, you can go as short as about 5 characters | 01:48 |
|
| sometimes | 01:48 |
|
Kira
| canton7, osse: a much safer method seems to be using xhost to test the existence of an x session. | 01:48 |
|
Zexaron
| none of the suggestions worked* | 01:48 |
|
rewt
| are you looking at a public repo? | 01:48 |
|
Zexaron
| I'm not dealing with master right now | 01:48 |
|
| I have a local branch based on the old remote branch, remote branch is still 4 months old | 01:49 |
|
Kira
| canton7, osse: that's what I ended up doing. | 01:49 |
|
Zexaron
| I made a copy, rebased, updated | 01:49 |
|
| Yes it is public on github | 01:49 |
|
| but I'm comparing it to my fork on remote, still I have it ofcourse fetched so it's downstream/my_branch | 01:49 |
|
| I'm not dealing directly with the public repo on upstream | 01:50 |
|
rewt
| so there was an existing branch, you rebased it, and added more commits to it? | 01:50 |
|
Zexaron
| no I did not add more commits, there's only one commit | 01:50 |
|
| I rebased the branch, and amended the same commit | 01:50 |
| → drbean_ joined | 01:51 |
| → jottr_ joined | 01:51 |
|
rewt
| when you rebase, you can't really diff the old to the new... there is no direct relationship between them | 01:51 |
| → Elon_Satoshi joined | 01:51 |
| ← akushner left | 01:52 |
| → mar77i_ joined | 01:52 |
|
rewt
| a rebase is the same as creating a new branch, and copying all the commits from the old branch to the new branch, and then deleting the old branch | 01:52 |
|
Zexaron
| I diffed the changes prior to amending, that's what im looking for, but that's a partial diff, only the changes, not the whole | 01:52 |
|
rewt
| so anything that was added to the source branch between creating the old and new branches are present in the new branch and will show up in any diff you try | 01:52 |
| → toothe_ joined | 01:53 |
| → SuperKaramba joined | 01:53 |
| → Werring` joined | 01:53 |
| → Zohnuqu3pah5iej- joined | 01:53 |
|
Zexaron
| the rebase most likely did not change anything in my commit, but I was curious | 01:53 |
| → jargan joined | 01:53 |
|
rewt
| the rebase very likely recreated every single commit since your branch was created | 01:54 |
|
Zexaron
| the rebase is only for getting rid of the conflicts, right, those commits that were added by rebase are totally irrelevant | 01:54 |
|
rewt
| there is something you can try though: | 01:54 |
|
Zexaron
| to me* | 01:54 |
| ← alyptik left | 01:54 |
|
rewt
| diff <( git diff source...oldbranch ) <( git diff source...newbranch ) | 01:54 |
|
| that will diff the diffs of each branch | 01:54 |
|
Zexaron
| what is "source" ? | 01:54 |
| → boshhead_ joined | 01:54 |
|
rewt
| source is the branch that it was branched off of... what was active at the time the branch was created | 01:55 |
| ← boshhead left | 01:55 |
| boshhead_ → boshhead | 01:55 |
|
rewt
| likely master | 01:55 |
|
Zexaron
| I usually switch to master before creating anything new yes | 01:55 |
| → rafalcpp joined | 01:55 |
| → mikap joined | 01:56 |
|
Zexaron
| but the source would be different for the old branch right, that's way way long ago, any way I could figure out it's hash ? | 01:56 |
| → wolfshappen_ joined | 01:56 |
| ← jottr_ left | 01:56 |
| → waveclaw_ joined | 01:56 |
| → Kronuz_ joined | 01:57 |
|
rewt
| that could've been master too | 01:57 |
| → imMute^ joined | 01:57 |
|
Zexaron
| i don't think the log goes back 4 months, and I think I did some log cleaning and fsck and object and repacking | 01:57 |
| → irdr_ joined | 01:58 |
| → thealphanerd joined | 01:59 |
| → kjartan_ joined | 01:59 |
| ← ferdna left | 02:00 |
| ← irdr left | 02:00 |
| ← xrexeon left | 02:00 |
| ← BenderRodriguez left | 02:00 |
| ← kjartan left | 02:00 |
| ← jottr left | 02:00 |
| ← kfoonamalik left | 02:00 |
| ← InfinityIO left | 02:00 |
| ← catkiller left | 02:00 |
| ← xnox left | 02:00 |
| ← rts-sander left | 02:00 |
| ← waveclaw left | 02:00 |
| ← CommanderViral left | 02:00 |
| ← Kronuz left | 02:00 |
| ← Pistos left | 02:00 |
| ← Trel left | 02:00 |
| ← chckyn left | 02:00 |
| ← ahf left | 02:00 |
| ← Werring left | 02:00 |
| ← ghormoon left | 02:00 |
| ← drbean left | 02:00 |
| ← brandonkal left | 02:00 |
| ← Copenhagen_Bram left | 02:00 |
| ← jast left | 02:00 |
| ← moei left | 02:00 |
| ← _xor left | 02:00 |
| ← dhollinger left | 02:00 |
| ← stutter left | 02:00 |
| ← powerbit left | 02:00 |
| ← errr left | 02:00 |
| ← gde33 left | 02:00 |
| ← leah2 left | 02:00 |
| ← strugee left | 02:00 |
| ← mika left | 02:00 |
| ← Zialus left | 02:00 |
| ← wolfshappen left | 02:00 |
| ← jrzz_ left | 02:00 |
| ← paraxial left | 02:00 |
| ← mar77i left | 02:00 |
| ← comptroller left | 02:00 |
| ← rafalcpp_ left | 02:00 |
| ← APic left | 02:00 |
| ← swalladge left | 02:00 |
| ← toothe left | 02:00 |
| ← Zohnuqu3pah5iejo left | 02:00 |
| ← anddam left | 02:00 |
| ← imMute left | 02:00 |
| ← MylesBorins left | 02:00 |
| ← sweatsuit left | 02:00 |
| ← satifant left | 02:00 |
| Kronuz_ → Kronuz | 02:00 |
| jargan → jast | 02:00 |
| Werring` → Werring | 02:00 |
| mikap → mika | 02:00 |
| thealphanerd → MylesBorins | 02:00 |
|
Kira
| netsplit! yay | 02:00 |
|
rewt
| you could use gitk or similar to see what the repo actually looks like; it would give you all relationships between commits and hashes for all commits | 02:00 |
| → strugee joined | 02:00 |
| → chckyn joined | 02:00 |
| → sweatsuit joined | 02:01 |
|
Zexaron
| rewt: well I just reminded that I don't need hashes, i can do branches ofcourse, so i just put master in both sources, and branch names accordingly specifiying downstream/oldbranchname and the current branch I'm on which is local | 02:02 |
| → paraxial joined | 02:02 |
|
Zexaron
| rewt: and I think it worked!!! | 02:02 |
| → ahf joined | 02:02 |
| ← jstimm left | 02:03 |
|
Zexaron
| So i got the full diff, not just the latest changes diff | 02:03 |
| → cdown joined | 02:03 |
| ← angelo_ts left | 02:04 |
| → jubal joined | 02:05 |
| → xrexeon joined | 02:06 |
| → beatzz_ joined | 02:06 |
| → Peetz0r joined | 02:06 |
| → ferdna joined | 02:07 |
| → errr joined | 02:07 |
| beatzz_ → elsheepo | 02:07 |
| → Trel joined | 02:07 |
| → Pistos joined | 02:07 |
| → swalladge joined | 02:07 |
| → rts-sander joined | 02:07 |
| → satifant joined | 02:07 |
| → gde33 joined | 02:07 |
| → anddam joined | 02:07 |
| → leah2 joined | 02:07 |
| ← ferdna left | 02:07 |
| → dhollinger joined | 02:08 |
| → ferdna joined | 02:08 |
| ← jubal_ left | 02:08 |
| → angelo_ts joined | 02:09 |
| → jstimm joined | 02:09 |
| ← beatzz left | 02:10 |
| → finalbeta joined | 02:11 |
| ← horribleprogram left | 02:12 |
| → DanDare joined | 02:13 |
| ← F0rTex left | 02:13 |
| → roygbiv joined | 02:13 |
| → F0rTex joined | 02:14 |
| ← troyt left | 02:15 |
| → troyt joined | 02:15 |
|
DanDare
| Hi. I'm new to git. In a simple project lets say I want to test a bug fix or improvement, what's preferable? Testing everything before commit or mark that in git history? | 02:21 |
|
| Well, not exactly a git question but what's common? Just commit everything else youre doing (or trying) to do? | 02:22 |
|
b0nn
| DanDare: Unit tests? | 02:23 |
| → thiago joined | 02:23 |
|
b0nn
| I would run unit tests relevant to that branch until I was ready to merge, then I'd run the full suite | 02:23 |
|
DanDare
| In case i decide to register/commit that try but then I see its not the case and want previous state, its 'git revert' im looking for? | 02:24 |
|
b0nn
| your CI/CD setup should cover this | 02:24 |
|
DanDare
| b0nn, well not unit test | 02:24 |
|
| b0nn, I mean, im confused to even answer you. Im new to git and version control all together. Thanks anyway. | 02:25 |
|
b0nn
| ok, git's only reason for living is to track changes in your code | 02:26 |
|
| people often pair it with a continuous integration/continuous deployment system | 02:27 |
|
| which really means, they run certain types of unit tests when you commit, and when you merge | 02:27 |
| → davidfetter joined | 02:27 |
|
DanDare
| Nice I understand this. Thanks | 02:28 |
| ← cdown left | 02:28 |
| → alyptik joined | 02:29 |
| ← lss8 left | 02:31 |
| ← thatpythonguy left | 02:31 |
| → lss8 joined | 02:32 |
| ← steven left | 02:33 |
| → steven joined | 02:35 |
| ← orbyt_ left | 02:38 |
| → sgn_ joined | 02:39 |
| ← Wetmelon left | 02:40 |
| ← zulutango left | 02:41 |
| → orbyt_ joined | 02:42 |
| → fattredd_ joined | 02:43 |
| → cdown joined | 02:44 |
| ← Peetz0r left | 02:44 |
| → hbautista joined | 02:48 |
| ← Essadon left | 02:48 |
| → zulutango joined | 02:48 |
| ← korzq left | 02:53 |
| ← duderonomy left | 02:53 |
| ← zulutango left | 02:53 |
| → sanscoeur joined | 02:54 |
| ← Zexaron left | 02:55 |
| → ngui joined | 02:56 |
| → jottr_ joined | 02:56 |
| → zulutango joined | 02:56 |
| ← skered left | 03:00 |
| ← ngui left | 03:00 |
| ← ketas left | 03:00 |
| → ngui joined | 03:00 |
| toothe_ → toothe | 03:00 |
|
roygbiv
| DanDare: probably the most commonly used method is to create a branch for your experiments and do your work there | 03:00 |
| ← cdown left | 03:00 |
|
roygbiv
| but it's flexible so you can't really say there is the One True Way™ | 03:01 |
| ← JanC left | 03:02 |
| → cdown joined | 03:02 |
| → JanC joined | 03:03 |
| → appleguru joined | 03:03 |
|
DanDare
| roygbiv, ok thanks. And yeah that's how I said my question wasn't exactly about git :p I think it makes sense, create branch, try what you have in mind, then forget that forever if its not good | 03:03 |
| → watabou joined | 03:03 |
| → DolphinDream joined | 03:04 |
|
roygbiv
| DanDare: yep. the idea is to keep your master branch clean and use it as your "release" branch. if you like your experiments, then you can merge them to master and make a new release | 03:04 |
|
| some people don't like using master as a release branch though. it can be really complicated but for a simple project with just you or a couple of other devs, using master should be fine. | 03:05 |
|
appleguru
| git newb here… I need to do a rebase, but I don’t think I am doing it quite right | 03:06 |
|
roygbiv
| 😲 | 03:06 |
| → prakashdanish joined | 03:06 |
|
appleguru
| I have a local branch I want to open a PR against a remote branch with… but right now it has a ton of unrelated commits in its history, even though the actual diff is very small | 03:07 |
|
| how do I get rid of them all? | 03:07 |
| ← elsheepo left | 03:07 |
|
roygbiv
| appleguru: you mean you want to combine a bunch of commits into a single one? | 03:07 |
| ← daegontaven left | 03:07 |
|
appleguru
| maybe? | 03:07 |
|
roygbiv
| heh | 03:07 |
|
DanDare
| roygbiv, ok I got it thanks. Just using master is perfectly fine for me | 03:07 |
|
appleguru
| I started with the remote branch | 03:08 |
| ← Geezus42 left | 03:08 |
|
appleguru
| and cherry picked commits from a different local branch that I needed | 03:08 |
|
roygbiv
| DanDare: there's something called "git-flow" if you want to read up on it. it'll make your brain hurt for a small project, but it might be worth look at for edification | 03:08 |
| ← jstimm left | 03:08 |
|
roygbiv
| appleguru: ok i don't mean to sound like a git god here but what i usually do is rebase my local branch, then force push it up to the remote. | 03:09 |
| ← jottr_ left | 03:09 |
| → dfee joined | 03:09 |
|
appleguru
| roygbiv: thats exactly what I was trying to do | 03:09 |
| ← DolphinDream left | 03:09 |
|
appleguru
| but, I got a whole bunch of merge conflicts when I tried | 03:09 |
|
DanDare
| roygbiv, sure! I take note. My brain hurts already so I think it doesnt matter :p | 03:09 |
|
appleguru
| so.. maybe I was doing it wrong? | 03:09 |
|
roygbiv
| appleguru: hmmm, weird | 03:09 |
|
| appleguru: did you do something like 'git rebase -i HEAD~5' or some-such? | 03:10 |
|
appleguru
| I tried `git rebase -i HEAD~1` | 03:11 |
|
| here, I’ll show you specifically what I am trying to do… may help :D | 03:11 |
|
| https://github.com/BogGyver/openpilot/pull/23 | 03:11 |
|
roygbiv
| see that's only going to show you one commit. if you want to combine several into one then you'll need to do like HEAD~5 or however many previous commits you need to see | 03:11 |
|
appleguru
| diff is 6 files, pretty small | 03:11 |
|
| (but is showing 176 commits) | 03:12 |
| ← zulutango left | 03:12 |
|
roygbiv
| well you can show a whole bunch. you can say HEAD~176. but that doesn't mean you are going to do anything necessarily with all 176 of them | 03:12 |
| → esrse joined | 03:12 |
|
roygbiv
| that's just how many you want to see. once git drops you into an editor, you then give it instructions on what to do with various commits. if you don't do anything to a commit, it's left alone | 03:13 |
|
appleguru
| I guess I don’t really understand how all of thsoe commits got into the history to begin with? | 03:15 |
|
| since I in theory started at the latest head and then just cherry picked a few things on top | 03:15 |
| → DolphinDream joined | 03:15 |
|
appleguru
| (or at least tried to) | 03:15 |
|
roygbiv
| and the 'f' option is probably the one you want to use. it'll combine a commit with the one above it and remove its log message | 03:15 |
|
| hmmm ok that question is probably out my pay range. i'm pretty modestly skilled about git when it comes to anything outside the typical operations | 03:16 |
|
Redrambles
| may be totally off here - but would something like 'git reset --soft <earliest relevant commit>' and then an add, commit and force push work? | 03:16 |
|
appleguru
| I mean, I can pull out the 6 files that changed, revert to the latest and make a new commit with them… that would work fine of course, but isn’t very git like (and loses the history, which doesn’t resally matter too much here) | 03:18 |
| ← Dirak left | 03:19 |
|
roygbiv
| if it were me i would just use the 'f' option in an interactive rebase to roll a bunch of commits into a single one. then force push | 03:19 |
|
| is that the best or smartest way? i have no idea heh but it's the one i know | 03:20 |
| ← ngui left | 03:20 |
| → ngui joined | 03:20 |
| → zulutango joined | 03:21 |
| → skered joined | 03:22 |
|
appleguru
| roygbiv: how do I do that? | 03:24 |
|
roygbiv
| something like "git rebase -i HEAD~10" or however many commits you want to see, then just start marking them 'f' for the ones you want to combine into the commit above it | 03:25 |
| → andyhuzhill_ joined | 03:25 |
| ← fattredd_ left | 03:25 |
|
appleguru
| but there are like ~170 completely unrelated commits?! | 03:25 |
| → korzq joined | 03:25 |
|
appleguru
| (that I essentially want to just toss) | 03:25 |
|
| I just want to tell git “please take what I have, and put it on top of this remote branch with one new commit” | 03:26 |
|
| how can I do that? | 03:26 |
|
roygbiv
| ok you want to delete the commits completely, including any changes associated with them? | 03:26 |
|
appleguru
| yeah | 03:26 |
|
roygbiv
| ok well instead of marking them 'f' you can mark them 'd' but hmm, 170 of them. i have no idea what's going to happen heh | 03:27 |
|
| appleguru really needs to learn git | 03:27 |
|
roygbiv
| i've deleted one or two commits from a repo but 170 that is really something. i thought you were wanting to keep the changes, but just combine the commits | 03:27 |
| ← andyhuzhill left | 03:28 |
| andyhuzhill_ → andyhuzhill | 03:28 |
| → Goplat joined | 03:30 |
| ← ferdna left | 03:31 |
|
appleguru
| I just did it the old fashioned way *shrug* | 03:33 |
|
| looks much cleaner now :P | 03:33 |
|
roygbiv
| all's well that ends well 😎 | 03:34 |
| → andyhuzhill_ joined | 03:34 |
| → mobile_c joined | 03:34 |
| → Dirak joined | 03:35 |
| → breakingsad joined | 03:36 |
| → ketas joined | 03:36 |
| ← dfee left | 03:38 |
| ← andyhuzhill left | 03:38 |
| andyhuzhill_ → andyhuzhill | 03:38 |
| ← andyhuzhill left | 03:39 |
| → andyhuzhill joined | 03:40 |
| ← q-chymera left | 03:40 |
| → q-chymera joined | 03:41 |
| ← q-chymera left | 03:42 |
| → q-chymera joined | 03:42 |
| ← andyhuzhill left | 03:44 |
| → andyhuzhill joined | 03:44 |
| ← ngui left | 03:45 |
| → ngui joined | 03:45 |
| ← sanscoeur left | 03:45 |
| → Peetz0r joined | 03:46 |
| → dfee joined | 03:47 |
| ← zulutango left | 03:47 |
| → zulutango joined | 03:48 |
| ← appleguru left | 03:48 |
| ← roygbiv left | 03:49 |
| ← andyhuzhill left | 03:49 |
| → andyhuzhill joined | 03:49 |
| ← lagothrix left | 03:50 |
| → lagothrix joined | 03:50 |
| ← ngui left | 03:50 |
| ← Khisanth left | 03:50 |
| → ngui joined | 03:51 |
| ← Peetz0r left | 03:51 |
| → Peetz0r joined | 03:52 |
| ← alyptik left | 03:52 |
| ← Dirak left | 03:52 |
| → thebope joined | 03:53 |
| ← andyhuzhill left | 03:54 |
| ← skered left | 03:54 |
| → andyhuzhill joined | 03:55 |
| ← andyhuzhill left | 03:59 |
| → andyhuzhill joined | 03:59 |
| → ferdna joined | 04:01 |
| → alyptik joined | 04:03 |
| ← andyhuzhill left | 04:04 |
| → andyhuzhill joined | 04:04 |
| ← blackmesa1 left | 04:05 |
| ← DolphinDream left | 04:05 |
| ← ferdna left | 04:05 |
| SuperKaramba → BenderRodriguez | 04:06 |
| → ir7466 joined | 04:07 |
|
ir7466
| hi there | 04:07 |
|
| i do a git fetch, and then git remote -a | 04:07 |
|
| but i am definitely not seeing the same list of remote branches i see on github | 04:07 |
|
| could it be someone else introduced some sort of fetch "rule" that is blocking some branches? | 04:07 |
|
| i do notice that the only ones it's fetching have particular names | 04:07 |
|
| but i don't know where to look for such a "filter" | 04:08 |
| → Khisanth joined | 04:08 |
| → stitched_unicorn joined | 04:08 |
| ← ngui left | 04:10 |
| → ngui joined | 04:10 |
| ← stitched_unicorn left | 04:12 |
| ← Cabanoss- left | 04:14 |
| → Cabanossi joined | 04:14 |
| ← mooasaurus left | 04:15 |
| ← korzq left | 04:15 |
| ← orbyt_ left | 04:15 |
| → stitched_unicorn joined | 04:15 |
| → sanscoeur joined | 04:16 |
| → ferdna joined | 04:18 |
| → buzzlewoo joined | 04:20 |
| ← Trieste left | 04:22 |
| → Trieste joined | 04:25 |
| ← buzzlewoo left | 04:29 |
| ← prakashdanish left | 04:32 |
| → kapil____ joined | 04:35 |
| → brandonkal joined | 04:38 |
| ← Noodlewitt left | 04:38 |
| ← brandonkal left | 04:41 |
| → brandonkal joined | 04:41 |
| ← stitched_unicorn left | 04:44 |
| → sauvin joined | 04:45 |
| ← ferdna left | 04:45 |
| → ferdna joined | 04:46 |
| ← dfee left | 04:46 |
| ← xrexeon left | 04:47 |
| → rsrx joined | 04:49 |
| → Noodlewitt joined | 04:55 |
| → \void joined | 04:58 |
| → dfee joined | 05:00 |
| → jottr_ joined | 05:05 |
| → benharri joined | 05:06 |
| ← jottr_ left | 05:10 |
| ← bket left | 05:15 |
| waveclaw_ → waveclaw | 05:17 |
| → bket joined | 05:18 |
| → netj joined | 05:21 |
| → duderonomy joined | 05:22 |
| → inkbottle joined | 05:24 |
| ← libertyprime left | 05:26 |
| → figurelisp joined | 05:28 |
|
toothe
| anyone understand the idx file format? | 05:29 |
|
thiago
| what are you trying to do? | 05:32 |
| ← ferdna left | 05:36 |
|
toothe
| thiago: sorry, I should be clear | 05:36 |
|
| I am trying to understand how the idx format works | 05:36 |
|
| i gethat...there is an incrementing count based on the first byte of the sha1 digest | 05:37 |
|
| then the digests | 05:37 |
|
| what comes after that? | 05:37 |
| ← netj left | 05:37 |
|
toothe
| I'm reading Documentation/technical/pack-format.txt | 05:37 |
| → netj joined | 05:38 |
| ← inkbottle left | 05:38 |
| ← scrptktty left | 05:38 |
| → akushner joined | 05:39 |
| ← cdown left | 05:43 |
| → cdown joined | 05:43 |
| → xmate joined | 05:47 |
| → inkbottle joined | 05:47 |
| ← bn_work left | 05:49 |
| → tsdh joined | 05:51 |
| ← akushner left | 05:51 |
| → Puffball joined | 05:52 |
| ← snowgoggles left | 05:53 |
| → akushner joined | 05:58 |
| ← flying_sausages left | 05:59 |
| ← Elon_Satoshi left | 06:00 |
| ← ngui left | 06:00 |
| → Elon_Satoshi joined | 06:02 |
| → libertyprime joined | 06:03 |
| ← cdown left | 06:05 |
| → ngui joined | 06:05 |
| ← kjartan_ left | 06:05 |
|
thiago
| toothe: sure, but just for curiosity or are you trying to do something with those files? | 06:07 |
|
toothe
| yes - I am writing an implementation of git | 06:08 |
|
| at least parts of it | 06:08 |
|
| personal project | 06:08 |
| ← benharri left | 06:10 |
| ← pR0Ps left | 06:10 |
| → kjartan joined | 06:10 |
| → Dirak joined | 06:14 |
|
toothe
| i think its in write_idx_file | 06:21 |
|
| in the file pack-write.c | 06:21 |
|
tsdh
| I have the task to merge fixes from the latest release branch into master every now and then. Is there any reason to favor "git merge release_x_y_z" over "git merge origin/release_x_y_z"? I'd rather use the latter because then I can just fetch and go and have no need to checkout release_x_y_z before. | 06:22 |
| ← figurelisp left | 06:24 |
| → pR0Ps joined | 06:27 |
| → venmx joined | 06:29 |
| → dre_ joined | 06:29 |
| → n3wborn joined | 06:29 |
| ← victorqueiroz left | 06:31 |
|
kadoban
| tsdh: No, git doesn't care | 06:32 |
|
tsdh
| kadoban: Ok, good. | 06:33 |
| ← rsrx left | 06:34 |
|
kadoban
| Do make sure you fetch though, if that's your intention. Or at least know exactly what you're merging. Git will happily merge a week/month/year old origin/release if you just forget to fetch | 06:34 |
| ← libertyprime left | 06:35 |
| ← kadoban left | 06:37 |
| ← hbautista left | 06:37 |
|
tsdh
| kadoban: Could that make any problems? It would merge whatever the last merge-base is. In the worst case, I could have merged some more commits now which I'll then merge the next time, no? | 06:38 |
|
| Oh, he's gone... | 06:38 |
| → mat001 joined | 06:40 |
| ← ngui left | 06:40 |
| → ngui joined | 06:41 |
| ← andyhuzhill left | 06:44 |
| ← Goplat left | 06:45 |
| → andyhuzhill joined | 06:45 |
| ← ngui left | 06:45 |
| → ngui joined | 06:45 |
| → exmate joined | 06:47 |
| ← Inline left | 06:47 |
| ← xmate left | 06:48 |
| ← Dirak left | 06:50 |
| → andyhuzhill_ joined | 06:50 |
| → Dirak joined | 06:50 |
| ← ngui left | 06:50 |
| → ngui joined | 06:51 |
| ← \void left | 06:52 |
| ← andyhuzhill left | 06:53 |
| andyhuzhill_ → andyhuzhill | 06:53 |
| → powerbit joined | 06:55 |
| ← ngui left | 06:55 |
| → ngui joined | 06:55 |
| ← thiago left | 06:57 |
| ← Dirak left | 06:57 |
| → keepLearning512 joined | 06:58 |
| ← andyhuzhill left | 06:58 |
| ← dre_ left | 07:01 |
| ← yuriii left | 07:03 |
| → rick8024 joined | 07:04 |
| → Dirak joined | 07:04 |
| ← KnoP left | 07:05 |
| rick8024 → KnoP | 07:05 |
| ← venmx left | 07:05 |
| → jottr_ joined | 07:06 |
| → flying_sausages joined | 07:09 |
| → andyhuzhill joined | 07:10 |
| ← jottr_ left | 07:10 |
| ← thebope left | 07:11 |
| → thebope joined | 07:12 |
| ← Dirak left | 07:13 |
| ← igemnace left | 07:14 |
| → chele joined | 07:15 |
| ← Noodlewitt left | 07:15 |
| → Dirak joined | 07:16 |
| → ansraliant joined | 07:16 |
|
ansraliant
| morning | 07:17 |
| ← thebope left | 07:18 |
| ← andyhuzhill left | 07:18 |
| ← Dirak left | 07:21 |
| → dreiss joined | 07:26 |
| ← Fusl left | 07:28 |
| → Fusl joined | 07:30 |
| → andrzejv joined | 07:30 |
| ← nowhere_man left | 07:34 |
| → rsrx joined | 07:34 |
| → T_UNIX joined | 07:35 |
| ← mat001 left | 07:37 |
| → sQVe joined | 07:39 |
| ← ir7466 left | 07:41 |
| → cluelessperson_ joined | 07:44 |
|
cluelessperson_
| how do you mirror a repo without saving it in a *.git directory? | 07:44 |
| → andyhuzhill joined | 07:45 |
| → Phylock joined | 07:45 |
| → Dirak joined | 07:45 |
| m1dnight1 → m1dnight_ | 07:46 |
| → acidjnk joined | 07:47 |
| → horribleprogram joined | 07:48 |
| ← rsrx left | 07:48 |
| ← breakingsad left | 07:48 |
| ← andyhuzhill left | 07:49 |
| → thebope joined | 07:49 |
| → andyhuzhill joined | 07:49 |
| → pks joined | 07:52 |
| ← ngui left | 07:55 |
| → ngui joined | 07:56 |
| → oxymoron93 joined | 07:59 |
| ← dreiss left | 07:59 |
| ← ngui left | 08:00 |
| → ngui joined | 08:00 |
|
osse
| cluelessperson_: what do you mean by mirror in that case? | 08:04 |
| → dege joined | 08:05 |
|
osse
| cluelessperson_: maybe you want man git-bundle | 08:09 |
|
gitinfo
| cluelessperson_: the git-bundle manpage is available at https://gitirc.eu/git-bundle.html | 08:09 |
| ← horribleprogram left | 08:11 |
| → pks_ joined | 08:12 |
| ← pks left | 08:14 |
| pks_ → pks | 08:14 |
| ← andyhuzhill left | 08:14 |
| → bsaboia joined | 08:15 |
| → andyhuzhill joined | 08:15 |
| ← andyhuzhill left | 08:19 |
| → andyhuzhill joined | 08:20 |
| ← ngui left | 08:20 |
|
anddam
| howdy | 08:20 |
| → ngui joined | 08:21 |
| ← GreenJello left | 08:22 |
| ← dpyro left | 08:23 |
| ← andyhuzhill left | 08:24 |
| → andyhuzhill joined | 08:24 |
| ← ngui left | 08:25 |
| → ngui joined | 08:25 |
|
anddam
| I have a local master that 'is ahead of 'origin/master' by 7 commits" | 08:26 |
|
| how do I reset this to origin/master? | 08:26 |
|
| also why do I sometime specify "repo refspec" and other times "repo/refspec"? | 08:27 |
|
oxymoron93
| origin/master is remote tracking branch, it is the state of remote repo as of the last time you fetched from origin anddam | 08:28 |
| ← keepLearning512 left | 08:28 |
| ← andyhuzhill left | 08:29 |
| → andyhuzhill joined | 08:30 |
| ← Puffball left | 08:30 |
|
anddam
| but I just fetched origin | 08:31 |
|
osse
| anddam: "repo/refspec" is actually just "refspec". Some refs have the remote repo name in their name | 08:31 |
|
| anddam: if you want to nuke all your own crap on master you can do git reset (--hard) origin/master | 08:32 |
|
oxymoron93
| sorry for bailing out, had to quickly satisfy some other customers anddam :D so you use that ^ | 08:32 |
|
anddam
| osse: is that a different namespace though? I mean is "origin/fubar' just part of the ref name? | 08:33 |
|
osse
| anddam: yes. the full name is "refs/remotes/origin/fubar" | 08:33 |
|
anddam
| oxymoron93: no problem at all, I would never pretend help, even the less in real time | 08:33 |
| → mat001 joined | 08:34 |
| ← andyhuzhill left | 08:34 |
|
anddam
| osse: I think I'm missing a bit then, that full name is a "local" concept? | 08:34 |
|
osse
| anddam: not sure what you mean by "local concept". But it is indeed "local" | 08:34 |
|
| anddam: refs/remotes/origin/fubar is like a "mirror" of the branch named "fubar" that exists on the remote named "origin" | 08:35 |
|
anddam
| I thought it was split in two domains, repository and ref, so (origin, master) would reference the ref named "master" on remote "origin" | 08:35 |
| ← sgn_ left | 08:35 |
|
anddam
| osse: oh ok, that mirror part implies it is "local" for what I perceive as local | 08:35 |
| → keepLearning512 joined | 08:35 |
|
osse
| anddam: in "git push origin master" you decide you want to push to origin, and what you want to push is master | 08:37 |
|
anddam
| osse: let me show an example of what makes me confused | 08:38 |
| ← mat001 left | 08:38 |
| → manuelschneid3r joined | 08:38 |
|
anddam
| git branch -a has master remotes/origin/HEAD -> origin/master remotes/origin/master | 08:38 |
|
| I want to check all "my own crap" before resetting master to be sure there is nothing important so I run git diff origin/master..master | 08:39 |
|
osse
| anddam: the first thing is your own master branch. the last thing is that mirror i talked about. | 08:39 |
|
anddam
| ok, but here I have two issues | 08:39 |
|
osse
| the stuff in the middle is pretty uninteresting to be honest. at list for this discussion | 08:39 |
|
anddam
| 1) the diff I ran says warning: refname 'master' is ambiguous. | 08:39 |
|
| how's that ambiguous if it is an exact match with a branch name? | 08:40 |
|
osse
| anddam: do: git for-each-ref and show me the output | 08:40 |
|
anddam
| 2) the part you defined uninteresting puzzles me, it "links" origin/master but there's no such line in branches | 08:40 |
| ← ali1234 left | 08:42 |
| ← exmate left | 08:43 |
|
anddam
| osse https://gist.github.com/adab4d/f904478a1d820e1fa2853f47e966da37 | 08:43 |
| → andyhuzhill joined | 08:45 |
| ← ngui left | 08:45 |
| → ngui joined | 08:46 |
| → Silmarilion joined | 08:46 |
|
oxymoron93
| anddam: issue is that you have tag named `master` | 08:48 |
|
| what was the purpose for such naming? playing around? :D | 08:48 |
| ← andyhuzhill left | 08:49 |
|
anddam
| no, I remember that was the suggested name for stable in gitflow | 08:49 |
| → andyhuzhill joined | 08:49 |
| ← ngui left | 08:50 |
| → ngui joined | 08:50 |
|
anddam
| oh the tag, not the ref | 08:50 |
|
osse
| anddam: you have both a branch and a tag named master | 08:51 |
|
| that's why "master" is ambiguous | 08:51 |
|
oxymoron93
| well tag is also ref as you can see : refs/tags/<tag> | 08:51 |
| → rsrx joined | 08:52 |
|
anddam
| yes I figured after oxymoron93's line and deleted it | 08:52 |
| → exmate joined | 08:53 |
| ← ansraliant left | 08:57 |
| ← freeman42x left | 09:00 |
| ← ngui left | 09:00 |
| ← wrouesnel left | 09:01 |
| → floppydh joined | 09:03 |
| → jottr_ joined | 09:07 |
| ← shentino left | 09:07 |
| → shentino_ joined | 09:08 |
|
amosbird
| Hello | 09:10 |
|
| when doing rebase | 09:10 |
|
| https://la.wentropy.com/A6mC | 09:10 |
| ← troyt left | 09:10 |
|
amosbird
| which one is my local commit? | 09:10 |
| → ngui joined | 09:10 |
| → stitched_unicorn joined | 09:11 |
| ← jottr_ left | 09:11 |
| → jrzz joined | 09:11 |
| → troyt joined | 09:12 |
| → mikecmpbll joined | 09:13 |
| ← rsrx left | 09:13 |
| → cswl joined | 09:14 |
| → fairuz joined | 09:15 |
| ← fairuz left | 09:15 |
| → rsrx joined | 09:16 |
| → leprechau joined | 09:18 |
| → mpodien joined | 09:18 |
| ← andyhuzhill left | 09:19 |
| → andyhuzhill joined | 09:20 |
| → rnmhdn joined | 09:22 |
| → Makaveli7 joined | 09:22 |
|
oxymoron93
| amosbird: usually, your side is shown before `=======`, in this case plain nothing | 09:24 |
|
amosbird
| oxymoron93: hmm, my local commit has the message "." | 09:25 |
|
| which is after ====== | 09:25 |
|
| I don't quite understand if that really means my local changes | 09:25 |
|
osse
| anddam: as for the uninteresting puzzle. HEAD is a symbolic ref, like a pointer to a ref. That puzzling bit is a copy of the origin repo's HEAD and what it points to | 09:25 |
|
amosbird
| that "onto" and "join" keywords are also confusing | 09:26 |
| → GreenJello joined | 09:27 |
| ← mpodien left | 09:27 |
| → jottr_ joined | 09:30 |
| ← ngui left | 09:30 |
| ← pks left | 09:31 |
|
amosbird
| it's indeed my local changes | 09:32 |
| ← andyhuzhill left | 09:34 |
| → nowhere_man joined | 09:35 |
| → andyhuzhill joined | 09:35 |
| ← andyhuzhill left | 09:35 |
| → ansyeb joined | 09:35 |
|
ansyeb
| hello. I am doing: git ls-tree -r --name-only master | grep Project/Crm/Classes/System/Cron/Jobs/UpdateDriverDroveAtReport. it show me some path, starting at application/src/.. and so on. where can I find this directory on a system? | 09:36 |
|
anddam
| osse: the symbolic ref is pointing to 'origin/master' whose full name is 'remotes/origin/master' is that right? | 09:38 |
| → interrobangd joined | 09:39 |
| ← mikecmpbll left | 09:42 |
| → mikecmpbll joined | 09:43 |
| → pks joined | 09:49 |
|
anddam
| different topic, I'm trying to learn a good habit | 09:49 |
|
| I have a master ref tracking origin/master, origin receives a new commit, I fetch origin | 09:49 |
|
| so far so good | 09:49 |
|
| now I want to update my master in order to receive that commit in my working directory | 09:50 |
|
| shouldn't a 'git checkout master' do that? | 09:50 |
|
| I get Your branch is behind 'origin/master' by 1 commit, and can be fast-forwarded. (use "git pull" to update your local branch) | 09:50 |
|
| but why do I need to pull if I already fetched? | 09:50 |
| → igemnace joined | 09:51 |
|
anddam
| from what I know pull is fetch+merge or fetch+rebase if so selected by options | 09:51 |
| Seveas_ → Seveas | 09:51 |
| ← rnmhdn left | 09:52 |
|
oxymoron93
| well merge is indeed needed if you want your local master to have those changes | 09:52 |
|
anddam
| so I should not do a checkout but a merge | 09:52 |
|
oxymoron93
| as described, git fetch <remote> only updates refs/remotes/<remote>/<branches> which are remote tracking branches, simple local master stays the same | 09:52 |
|
anddam
| this is counterintuitive for me, I want to move my working directory to a different ref | 09:53 |
|
| and I already fetched that ref | 09:53 |
|
| in fact I'm here just after the fetch, git log -1 shows * e4c19cd - (HEAD -> master) Update tasks | 09:54 |
|
oxymoron93
| in that case sure, `git checkout origin/master` would suffice anddam | 09:54 |
|
| but not git checkout master, as master isn't updated | 09:54 |
|
osse
| anddam: yes | 09:54 |
|
| well, refs/... | 09:54 |
|
anddam
| while the last commit is * 633cd8d - (origin/master, origin/HEAD) Whitespace change (5 minutes ago) | 09:54 |
|
| I did not expect log output to be contextual, I thought it was an absolute concept in a repo | 09:55 |
|
| i.e. log has tho show "the one history to rule them all" | 09:55 |
|
| oxymoron93: checking out origin/master put me in a detached state | 09:56 |
|
| that was not desired | 09:56 |
|
oxymoron93
| yes it does | 09:56 |
| ← xcm left | 09:56 |
|
oxymoron93
| in that case go back to master and run `git merge origin/master` | 09:56 |
|
anddam
| but not desired | 09:56 |
|
| I ended up doing pull, that is the merge, | 09:56 |
|
| but I really don't get the hang of it | 09:56 |
|
| sorry if I seem rambling, but it's the frustration | 09:57 |
| → xcm joined | 09:58 |
|
osse
| anddam: Git is distributed, thus there is no log to rule them all. | 09:58 |
| → blackmesa1 joined | 10:00 |
| → venmx joined | 10:01 |
|
anddam
| osse: well I can clearly see it at "the set of all commits this repository knows" | 10:01 |
|
ansyeb
| how to show content of a commited file in git? | 10:01 |
|
anddam
| in fact git log -1 origin/master shows the new commit | 10:02 |
|
| osse: it's not the distributed parts the bothers me, it's something about the relationships between repo, branches and tracking branches | 10:03 |
|
| osse: I have no issues at all with mercurial, since a few years actually. But everybody and their brother is using github/gitlab nowadays | 10:03 |
|
| and frankly I can see why, bitbucket's UX is horrid in comparison | 10:04 |
|
| thanks for the info guys | 10:05 |
| → irqq joined | 10:05 |
| → ngui joined | 10:05 |
|
osse
| anddam: !remote_tr | 10:06 |
|
gitinfo
| anddam: [!remote_tracking_branch] Remote-tracking branches (branches which start with e.g. 'origin/', listed by 'git branch -r') are read-only mirrors of the branches in another repository. They're updated by 'git fetch'. You can't edit them directly (trying to check them out results in a !detached HEAD), but you can create a local branch based on a remote-tracking branch using e.g. 'git checkout -b <branch> <remote>/<branch> | 10:06 |
|
osse
| Maybe it's this part that's either missing or making it worse? :P | 10:06 |
| → pfleck joined | 10:07 |
| ← blackmesa1 left | 10:08 |
|
oxymoron93
| ansyeb: is this what you want? `git show <commit>:<path_to_the_file>` | 10:10 |
| ← n3wborn left | 10:10 |
|
ansyeb
| I dont yet understand where files are stored on a server yet even ;/ | 10:11 |
|
| or theyre hidden under hash-names and I can never find them with expected nam ein FS | 10:11 |
| ← stitched_unicorn left | 10:13 |
|
canton7
| ansyeb, they're stored in .git/objects, under hash-names (along with commits, tags, records of directories, etc) | 10:13 |
|
| ansyeb, !bottomup has a good description (as do other books) | 10:13 |
|
gitinfo
| ansyeb: 'Git from the bottom up' starts with explaining the building blocks of git and proceeds to tell you how they fit together. https://jwiegley.github.io/git-from-the-bottom-up/ | 10:13 |
|
ansyeb
| git show <commit>:<path_to_the_file> was indeed what I am loking for, ty | 10:16 |
|
| and for gitlab its repo/objects? | 10:17 |
| ← catsup left | 10:18 |
| ← kjartan left | 10:18 |
| ← exmate left | 10:18 |
| → catsup joined | 10:18 |
|
canton7
| gitlab uses git | 10:18 |
| ← catsup left | 10:19 |
| → catsup joined | 10:20 |
| → styler2go joined | 10:20 |
| ← Kaisyu left | 10:21 |
| → kjartan joined | 10:23 |
| ← ngui left | 10:25 |
| → ngui joined | 10:26 |
| → goodafternoon joined | 10:26 |
| → TJ- joined | 10:26 |
| ← cd left | 10:27 |
| ← keepLearning512 left | 10:27 |
| ← pfleck left | 10:27 |
| → keepLearning512 joined | 10:30 |
| → vavkamil joined | 10:31 |
| ← hussam left | 10:31 |
| → xmate joined | 10:34 |
| ← pR0Ps left | 10:36 |
| → pR0Ps joined | 10:36 |
| ← pks left | 10:40 |
| → pks_ joined | 10:40 |
| → cur8or joined | 10:41 |
| pks_ → pks | 10:41 |
|
ansyeb
| anyways, got the whole issue solved. thanks to you. finding the source revealed the query, and executing it manually made the issue clear | 10:41 |
| → pfleck joined | 10:41 |
| ← keepLearning512 left | 10:41 |
| ← Dirak left | 10:42 |
| mar77i_ → mar77i | 10:44 |
| → blackmesa1 joined | 10:49 |
| ← dege left | 10:50 |
| ← hofmann3900 left | 10:52 |
| ← goodafternoon left | 11:03 |
| ← esrse left | 11:04 |
| ← xmate left | 11:05 |
| → HZun joined | 11:08 |
| shentino_ → shentino | 11:08 |
| ← ngui left | 11:10 |
| → ngui joined | 11:10 |
| ← pfleck left | 11:12 |
| → peacememories joined | 11:18 |
| ← peacememories left | 11:22 |
| → aw1 joined | 11:25 |
| → courrier joined | 11:27 |
| ← TJ- left | 11:28 |
| ← xcm left | 11:29 |
| ← bsaboia left | 11:29 |
| → xcm joined | 11:29 |
| ← ngui left | 11:30 |
| → pfleck joined | 11:31 |
| → keepLearning512 joined | 11:33 |
| ← blackmesa1 left | 11:33 |
| ← cur8or left | 11:35 |
| → mooasaurus joined | 11:37 |
| ← igemnace left | 11:39 |
| → ngui joined | 11:40 |
| ← pfleck left | 11:42 |
| → jungsubk joined | 11:42 |
| ← ngui left | 11:45 |
| ← pks left | 11:49 |
| → ngui joined | 11:50 |
| → blackntan joined | 11:55 |
| ← ngui left | 12:00 |
| → ngui joined | 12:05 |
| ← ngui left | 12:10 |
| → ngui joined | 12:11 |
| → pks joined | 12:14 |
| ← ngui left | 12:15 |
| → ngui joined | 12:15 |
| ← jungsubk left | 12:17 |
| ← alyptik left | 12:20 |
| ← ngui left | 12:20 |
| → ngui joined | 12:21 |
|
Luyin
| if I have two files with the exact same contents, and both are in different git repositories, should I be able to merge something in in repo A, make "git diff HEAD~ > foo.patch" and git apply this patch in repo B with "git apply foo.patch"? | 12:22 |
| → sgn_ joined | 12:22 |
| → Munt joined | 12:23 |
| → apoos_maximus joined | 12:24 |
| ← ngui left | 12:25 |
| → ngui joined | 12:25 |
| → blackmesa1 joined | 12:26 |
| ← z8z left | 12:30 |
| ← jottr_ left | 12:33 |
| ← ngui left | 12:40 |
| → ngui joined | 12:41 |
| ← blackmesa1 left | 12:42 |
| → pfleck joined | 12:42 |
| ← flying_sausages left | 12:43 |
| ← ngui left | 12:45 |
| → ngui joined | 12:45 |
| ← brandonkal left | 12:46 |
| → flying_sausages joined | 12:48 |
| ← ngui left | 12:50 |
| → ngui joined | 12:51 |
| → gxt joined | 12:52 |
| ← courrier left | 12:54 |
| ← ngui left | 12:55 |
| → ngui joined | 12:55 |
| ← rsrx left | 13:05 |
| ← topdownjimmy left | 13:05 |
| → topdownjimmy joined | 13:06 |
| → DolphinDream joined | 13:10 |
| ← pks left | 13:11 |
| ← ngui left | 13:15 |
| ← blackntan left | 13:16 |
| ← Makaveli7 left | 13:17 |
| ← DolphinDream left | 13:20 |
| → ngui joined | 13:20 |
| → jottr_ joined | 13:20 |
| → wildermind joined | 13:22 |
| → xrexeon joined | 13:25 |
| ← xrexeon left | 13:25 |
| ← ngui left | 13:25 |
| → xrexeon joined | 13:25 |
| → fission6 joined | 13:26 |
| → ngui joined | 13:26 |
| → hussam joined | 13:29 |
| ← ngui left | 13:30 |
| → ngui joined | 13:30 |
| ← jottr_ left | 13:33 |
| → alyptik joined | 13:33 |
| → courrier joined | 13:34 |
| ← ngui left | 13:35 |
| → ngui joined | 13:36 |
| ← wildlander left | 13:36 |
| ← yates_home left | 13:36 |
| → dege joined | 13:37 |
| ← ngui left | 13:40 |
| → ngui joined | 13:40 |
| ← ngui left | 13:45 |
| → xmate joined | 13:48 |
|
Luyin
| hi there, I have a txt file in UTF-16LE encoding (on windows). I want to place it under git version control, so I tried to put "working-tree-encoding=UTF-16LE" into .gitattributes. now when I try to "git add", I get the following error: https://paste.xinu.at/YOLf/ anyone got any idea how to resolve this? I can't change the encoding to UTF-16 (BE), because I don't know what the implications might be for my | 13:49 |
|
| project. this txt file needs to remain UTF-16LE | 13:49 |
| → ngui joined | 13:50 |
| → wildlander joined | 13:52 |
| → Essadon joined | 13:56 |
| → pks joined | 13:56 |
| ← Essadon left | 13:57 |
|
canton7
| Luyin, the man page says that UTF-16 files with BOM must use "UTF-16", not "UTF-16BE" or "UTF-16LE". Are you sure that "UTF-16" implies UTF-16LE, even if the file has a BOM which indicates it's UTF-16BE? | 13:57 |
| → Essadon joined | 13:57 |
|
canton7
| I guess if git's storing it as utf-8 internally, it'll lose the BOM, so it might check it back out again as UTF-16BE? | 13:58 |
|
Luyin
| I'm not sure anything is implied... I figured out the encoding information I needed with "file MAIN.txt" before I tried anything in .gitattributes | 13:58 |
|
| if that's even answering your question :-/ | 13:58 |
| ← ngui left | 14:00 |
| → bsanford joined | 14:01 |
| ← bsanford left | 14:02 |
| ← apoos_maximus left | 14:02 |
| → apoos_maximus joined | 14:03 |
|
canton7
| From some cursory reading, it looks like iconv likes to write 'utf-16' in the machine's endianness, and there might not be a way to convince it otherwise | 14:04 |
| ← quackgyver left | 14:05 |
|
canton7
| you're probably only using little-endian systems? So 'utf-16' is probably fine, and it'll get checked out as utf-16le with BOM | 14:05 |
|
| otherwise, is it possible to remove the BOM? | 14:05 |
| ← mensvaga left | 14:06 |
| ← aw1 left | 14:08 |
| ← courrier left | 14:09 |
| → benharri joined | 14:10 |
| → lacrymology joined | 14:10 |
| ← fission6 left | 14:11 |
|
sgn_
| IIRC, it's not possible to remove the BOM | 14:15 |
|
| git requires the BOM for UTF-16 | 14:15 |
| mns_ → mns | 14:15 |
| → igemnace joined | 14:16 |
|
sgn_
| the Unicode specification requires UTF-16BE for UTF-16-w/o-BOM but a lot of Windows software out there doesn't respect it | 14:16 |
| ← Essadon left | 14:16 |
|
sgn_
| Linux with musl libc chose different extreme path, to not emit the BOM on UTF-16 (w or w/o BE notation, I forget the details), and there is a test case in git failed | 14:17 |
| xcm → Guest27040 | 14:18 |
| ← Guest27040 left | 14:18 |
| → xcm joined | 14:18 |
| → Essadon joined | 14:18 |
| sgn_ → sgn | 14:18 |
| → Inline joined | 14:19 |
| ← KnoP left | 14:19 |
| ← rkta left | 14:21 |
| → KnoP joined | 14:21 |
| → rkta joined | 14:21 |
| ← pfleck left | 14:21 |
| → Puffball joined | 14:23 |
| ← nowhere_man left | 14:26 |
| → d^sh_ joined | 14:26 |
| ← d^sh left | 14:29 |
| ← andrzejv left | 14:30 |
| → hbautista joined | 14:31 |
| ← kjartan left | 14:31 |
| → th3m1s joined | 14:35 |
| → ngui joined | 14:35 |
| → kjartan joined | 14:36 |
| ← totte left | 14:38 |
| → czart joined | 14:38 |
| ← yn left | 14:40 |
| → blackmesa1 joined | 14:43 |
| → stitched_unicorn joined | 14:43 |
| → totte joined | 14:45 |
| → yn joined | 14:45 |
| → jottr_ joined | 14:47 |
| ← floppydh left | 14:48 |
| → scr267 joined | 14:50 |
| → jstimm joined | 14:50 |
| ← YuGiOhJCJ left | 14:50 |
| ← rafalcpp left | 14:52 |
| ← queip left | 14:52 |
| → fission6 joined | 14:54 |
| ← ngui left | 14:55 |
| → ngui joined | 14:56 |
| → codebam joined | 14:56 |
| → dpyro joined | 14:57 |
| → boombatower joined | 14:57 |
| → agowa338 joined | 14:58 |
| → yoh joined | 14:59 |
| ← dpyro left | 14:59 |
| ← sgn left | 14:59 |
| → orbyt_ joined | 14:59 |
| → dpyro joined | 14:59 |
| ← dpyro left | 15:00 |
| → dpyro joined | 15:01 |
| → rafalcpp joined | 15:02 |
| ← codebam left | 15:03 |
| → codebam joined | 15:04 |
| → queip joined | 15:05 |
| ← ngui left | 15:10 |
| ← igemnace left | 15:10 |
| → ngui joined | 15:10 |
| xcm → Guest96610 | 15:11 |
| ← Guest96610 left | 15:11 |
| → xcm joined | 15:11 |
| → cdown joined | 15:12 |
| ← Case_Of left | 15:18 |
| → skered joined | 15:18 |
| → pfleck joined | 15:19 |
| → Case_Of joined | 15:20 |
| ← ngui left | 15:20 |
| → ngui joined | 15:21 |
| → greggerz joined | 15:25 |
| ← ngui left | 15:25 |
| → ngui joined | 15:25 |
| ← tsdh left | 15:25 |
| ← agowa338 left | 15:27 |
| → Siecje joined | 15:29 |
| ← ngui left | 15:30 |
|
Siecje
| I have two commits. I want to update the first commit. (I accidentally included some debugging code). I have updated the first commit (git commit --amend). | 15:31 |
|
| How can I set the branch to this new commit? | 15:31 |
| → Envil joined | 15:32 |
| → cdown_ joined | 15:33 |
| ← pfleck left | 15:35 |
|
Siecje
| This is what I have done. https://dpaste.de/2drd | 15:35 |
| → ngui joined | 15:35 |
| ← stitched_unicorn left | 15:36 |
| ← cdown left | 15:36 |
| cdown_ → cdown | 15:36 |
| → jnewt joined | 15:38 |
| ← interrobangd left | 15:38 |
| → fattredd joined | 15:40 |
| ← inkbottle left | 15:40 |
| ← ngui left | 15:40 |
| → ngui joined | 15:41 |
|
fattredd
| Hey _ikke_, I wanted to thank you for helping me out yesterday. I had been struggling for hours and I really appretiate your assistance | 15:41 |
| → olabaz joined | 15:41 |
| ← dege left | 15:42 |
| → cdown_ joined | 15:42 |
|
olabaz
| Hi, I am new to working with git. I have a local directory, one on a server I ssh into and, a git I formed in said server. I normally write files locally and send them to server where I modify to a final version and then I push those changes to git. I now want to make my local folder have the files in git. What is the best way to do this? | 15:44 |
|
| also, my git is hosted on github* | 15:44 |
| ← cdown left | 15:44 |
| cdown_ → cdown | 15:44 |
|
olabaz
| I hope this question makes sense. | 15:45 |
| ← thebope left | 15:45 |
| ← ngui left | 15:45 |
| ← akushner left | 15:45 |
| → thebope joined | 15:45 |
| → ngui joined | 15:45 |
|
fattredd
| To clarify, you're saying that you edit your code on your computer as well as a personal server. Then you want to have github host your code. Is that right? | 15:47 |
| ← HZun left | 15:48 |
|
olabaz
| fattredd: I edit my code on my computer and then I modify it on server to get things working better. That directory on the server is already linked to my github account | 15:49 |
|
| now I just want the final changes to be reflected on my local computer | 15:49 |
|
| I can just download the files I changed but I would like to have that handled through git if possible | 15:49 |
|
fattredd
| Okay. You can install git on your computer too. Then you just need to clone the repository to your computer | 15:50 |
| ← cdown left | 15:51 |
|
olabaz
| ok, is there a way to ignore a file | 15:51 |
|
fattredd
| This is exactly what git is good at. Are you using command line, or a visual interface for git? | 15:51 |
|
olabaz
| commandline | 15:51 |
|
Luyin
| olabaz: man gitignore :) | 15:51 |
|
gitinfo
| olabaz: the gitignore manpage is available at https://gitirc.eu/gitignore.html | 15:51 |
|
Luyin
| olabaz: perhaps reading Pro Git (at least the first few chapters) will help you: https://git-scm.com/book/en/v2/Getting-Started-About-Version-Control | 15:52 |
|
olabaz
| Luyin: ok I'll take a look. thanks | 15:52 |
|
Luyin
| np. it's a really good read | 15:53 |
|
| and it explains a lot of things a lot better than the manpages definitely :D | 15:53 |
| → inkbottle joined | 15:55 |
| ← apoos_maximus left | 15:55 |
|
fattredd
| For sure. Highly recomended. | 15:55 |
| ← sQVe left | 15:56 |
| → pfleck joined | 15:58 |
| → thiago joined | 15:59 |
| ← oxymoron93 left | 16:00 |
| → TJ- joined | 16:00 |
| ← ngui left | 16:00 |
| ← tureba left | 16:02 |
| → ngui joined | 16:05 |
| → aw1 joined | 16:07 |
| ← aw1 left | 16:07 |
| ← treehug88 left | 16:08 |
| → aw1 joined | 16:08 |
| → al-damiri joined | 16:09 |
| → Toadisattva joined | 16:15 |
| ← sanscoeur left | 16:15 |
| ← ngui left | 16:15 |
|
Siecje
| How do you update the second last commit? | 16:16 |
| → tureba joined | 16:16 |
|
benharri
| as in edit it and rewrite the history? | 16:17 |
|
| man git-rebase | 16:17 |
|
gitinfo
| the git-rebase manpage is available at https://gitirc.eu/git-rebase.html | 16:17 |
|
benharri
| probably something like git rebase -i HEAD~2 | 16:17 |
| ← chele left | 16:20 |
| → durham joined | 16:20 |
| ← keepLearning512 left | 16:21 |
| ← Xiti left | 16:22 |
| ← blackmesa1 left | 16:23 |
| ← durham left | 16:23 |
| → thebetrayer joined | 16:23 |
|
Siecje
| I created a new branch. I moved the branch back to the commit I wanted to update. I updated it. | 16:24 |
|
| Now I have three commits in the new branch. How do I rebase the most recent two onto the newly ammended commit? | 16:24 |
| → aw1_ joined | 16:25 |
| → ngui joined | 16:25 |
| ← codebam left | 16:26 |
| ← aw1 left | 16:26 |
| → Xiti joined | 16:27 |
| ← ericboehs left | 16:27 |
|
Siecje
| This is what my repo looks like https://dpaste.de/L68J | 16:27 |
| ← wadadli left | 16:28 |
| ← pfleck left | 16:29 |
| → wadadli joined | 16:30 |
| → codebam joined | 16:30 |
| → ericboehs joined | 16:30 |
| ← thebetrayer left | 16:30 |
| ← ngui left | 16:30 |
| → pfleck joined | 16:30 |
| ← rts-sander left | 16:31 |
| → thebetrayer joined | 16:31 |
| → Zexaron joined | 16:31 |
| → apoos_maximus joined | 16:32 |
|
apoos_maximus
| is it possible to create a new repository on github from the command line ? | 16:34 |
| ← thiago left | 16:34 |
|
benharri
| Siecje: look into man git-cherry-pick if you just want to grab two commits | 16:34 |
|
gitinfo
| Siecje: the git-cherry-pick manpage is available at https://gitirc.eu/git-cherry-pick.html | 16:34 |
|
benharri
| apoos_maximus: not without an external tool | 16:35 |
|
apoos_maximus
| like ? | 16:35 |
| → ngui joined | 16:35 |
| ← thebetrayer left | 16:35 |
|
Siecje
| benharri: I did git rebase --onto feature HEAD~2 | 16:36 |
|
benharri
| apoos_maximus: i'm not sure; i haven't used any that do that, but i think github offers a tool called hub | 16:36 |
|
apoos_maximus
| alright ill look into it | 16:37 |
| → thebetrayer joined | 16:37 |
|
apoos_maximus
| so as of now all we could do to publish our local reps is by creating one manually on github.com and pulling from it then pushing to it | 16:38 |
|
_ikke_
| You don't need to pull from that repo if it's a new empty repo | 16:39 |
| → mat001 joined | 16:39 |
|
apoos_maximus
| yeah imean just in case we put a readme | 16:39 |
|
_ikke_
| You could do it, but note that you would have 2 root commits | 16:40 |
|
| not that anything is wrong with that, could just be unexpected | 16:40 |
|
Luyin
| I have that in one or two of my repos /o\ | 16:41 |
|
| well, I guess you learn with time and error | 16:41 |
|
apoos_maximus
| yeah ! |_o_| | 16:42 |
|
| thanks _ikke_ Luyin | 16:43 |
|
Luyin
| didn't do anything :D | 16:43 |
| ← mat001 left | 16:44 |
|
apoos_maximus
| well it felt good to not be the only one to have been thinking that ... ! | 16:44 |
|
Luyin
| ha, ok :) glad to "help" with that :) | 16:45 |
|
apoos_maximus
| :) | 16:45 |
| ← ngui left | 16:45 |
|
olabaz
| Hey, if git is installed on a school server that I ssh into. Can I still do git --global user.name for my repositories in /home/me? | 16:47 |
| ← pfleck left | 16:47 |
|
Luyin
| --global will use the ~/.gitconfig file to read/write | 16:47 |
|
olabaz
| ok good thanks | 16:48 |
| ← codebam left | 16:49 |
| ← jstimm left | 16:49 |
|
_ikke_
| olabaz: there is also --system, that uses /etc/gitconfig fyi | 16:50 |
| ← xrexeon left | 16:50 |
| → ngui joined | 16:50 |
|
olabaz
| _ikke_: ah ok don't want that one. Good to know thanks | 16:51 |
| ← Siecje left | 16:52 |
| → AtumT joined | 16:53 |
| → jamiejackson joined | 16:55 |
|
jamiejackson
| happy friday! we're planning an svn-to-git migration, and i need tips on what to do about converting our comprehensive svn config file over to .gitattributes: svn config: https://gist.github.com/jamiejackson/8c76439019aa177a0a271696afa99ff5 | 16:57 |
| ← thebope left | 16:58 |
| → thebope joined | 16:59 |
| → JeffH joined | 16:59 |
|
jamiejackson
| does it make sense to just convert every svn auto prop line to the .gitattribute equivalent, or are there things in there that are extraneous/problematic? i'd be grateful for any advice from git veterans. | 17:00 |
| → Admish joined | 17:02 |
| → mat001 joined | 17:02 |
| ← thebope left | 17:03 |
| ← inkbottle left | 17:06 |
| ← alyptik left | 17:08 |
|
canton7
| jamiejackson, well, .gitignore for the ignores, .gitattributes for the line endings stuff | 17:08 |
| ← JeffH left | 17:08 |
|
canton7
| the mime type stuff doesn't have an equivalent in git as far as I know -- not even sure what it's used for in svn | 17:09 |
| → akushner joined | 17:09 |
|
canton7
| the eol stuff has equivalents in .giattributes | 17:09 |
| ← mikecmpbll left | 17:10 |
| ← olabaz left | 17:10 |
| → causasui joined | 17:12 |
| → blackpharaoh joined | 17:13 |
| → TheRuckus joined | 17:13 |
| ← Arcaelyx left | 17:14 |
| ← mat001 left | 17:15 |
| ← ngui left | 17:15 |
|
jamiejackson
| canton7, okay, focusing on the eol end executable settings: is there anything in there that doesn't make sense to just convert to the .gitattributes equivalent? should i just convert the syntax of those over to .gitattributes, line by line, or are there changes that would make more sense for git? | 17:17 |
| → thiago joined | 17:19 |
| → Arcaelyx joined | 17:19 |
| ← fission6 left | 17:19 |
| → \void joined | 17:20 |
| → ngui joined | 17:20 |
| → mat001 joined | 17:20 |
| ← thebetrayer left | 17:20 |
| → thebetrayer joined | 17:21 |
| → prakashdanish joined | 17:21 |
| ← prakashdanish left | 17:22 |
| → mat001_ joined | 17:23 |
| ← thebetrayer left | 17:24 |
| → prakashdanish joined | 17:24 |
| ← prakashdanish left | 17:24 |
| → prakashdanish joined | 17:25 |
| ← acidjnk left | 17:25 |
| ← ngui left | 17:25 |
| ← mat001 left | 17:25 |
| → ngui joined | 17:26 |
| → thebetrayer joined | 17:26 |
| ← qqx left | 17:26 |
| → qqx joined | 17:26 |
| → max12345 joined | 17:27 |
|
max12345
| hello, I feel like I haven't really understood submodules and how to use them. Specifically how to update them properly. I have found that particular stackoverflow answer that explains it, but I'm not sure it's working or if I maybe misunderstand submodules. | 17:28 |
| ← tombusby left | 17:29 |
| ← ngui left | 17:30 |
| → ngui joined | 17:30 |
| ← blackpharaoh left | 17:32 |
| ← T_UNIX left | 17:34 |
| → m0viefreak joined | 17:35 |
| ← akushner left | 17:36 |
| → tombusby joined | 17:36 |
| → akushner joined | 17:37 |
| ← max12345 left | 17:37 |
|
_ikke_
| moritz: Can you explain what you are confused about? | 17:40 |
| ← akushner left | 17:41 |
| → Regon joined | 17:41 |
|
jamiejackson
| hmm, let me ask this a different way, now that i just read about `.gitattributes`'s `* text=auto`. do you suppose that will cover what i had manually specified in my svn config? https://gist.github.com/jamiejackson/8c76439019aa177a0a271696afa99ff5 | 17:43 |
|
_ikke_
| jamiejackson: what do you expect to happen? (I'm not that familiar with svn) | 17:44 |
| → Brilpikk3wyn joined | 17:46 |
|
grawity
| looks like automatic CRLF conversion on checkout, mostly | 17:46 |
| Brilpikk3wyn → Pikk3wyn | 17:46 |
| ← prakashdanish left | 17:48 |
| ← Toadisattva left | 17:48 |
| → bn_work joined | 17:49 |
|
jamiejackson
| _ikke_, svn treats everything as binary, and merges/diffs when there are windows/linux/osx working copies can be problematic, so it's best to tell svn when a file is text and svn converts to the native EOL for any given checkout | 17:50 |
| ← Jackneilll left | 17:50 |
| ← ngui left | 17:50 |
| → ngui joined | 17:51 |
|
_ikke_
| I would not do * text=auto | 17:51 |
|
| well, auto might not be that bad | 17:51 |
| → mat001 joined | 17:51 |
|
_ikke_
| should suffice | 17:51 |
| → Jackneill joined | 17:52 |
| → mikecmpbll joined | 17:52 |
| → bmbouter joined | 17:52 |
| ← Arcaelyx left | 17:52 |
|
bmbouter
| anyone have an idea of how a project could make all of its developers have a git command that adds some syntax to the commit message? | 17:52 |
| ← jamiejackson left | 17:54 |
| ← mat001_ left | 17:54 |
|
_ikke_
| bmbouter: there is no way to get that automatically | 17:55 |
| → crissae joined | 17:55 |
|
_ikke_
| there is always user interaction necessary | 17:55 |
| ← ngui left | 17:55 |
| → cdown joined | 17:55 |
| gitinfo set mode: +v | 17:55 |
|
bmbouter
| that is ok this just let's us know we can accept that solution as our best option | 17:55 |
| → ngui joined | 17:55 |
| → sanscoeur joined | 17:56 |
|
_ikke_
| this command could be an alias | 17:56 |
| → akushner joined | 17:57 |
| → fission6 joined | 17:57 |
| → mat001_ joined | 17:58 |
| → rsrx joined | 17:59 |
| → chingao joined | 17:59 |
| → p0s1x joined | 17:59 |
| → jamiejackson joined | 18:00 |
| ← ngui left | 18:00 |
| ← p0s1x left | 18:00 |
|
jamiejackson
| got disconnected _ikke_, but i looked at channel logs, and i think your conclusion was that `* text=auto` is fine? | 18:01 |
| ← mat001 left | 18:01 |
| → treehug88 joined | 18:02 |
| ← thiago left | 18:02 |
| ← apoos_maximus left | 18:03 |
| → apoos_maximus joined | 18:03 |
|
_ikke_
| yes | 18:05 |
| ← cdown left | 18:05 |
| → ngui joined | 18:05 |
|
_ikke_
| * text would be bad, but text=auto lets git decide itself whether it's binary or not. | 18:05 |
|
| You could of course make sure known extensions are always treated as binary | 18:05 |
| → n3wborn joined | 18:06 |
| → cdown joined | 18:06 |
|
up|ime
| bmbouter: you might be looking for .git/hooks/prepare-commit-msg | 18:07 |
| ← chingao left | 18:07 |
| ← apoos_maximus left | 18:08 |
|
up|ime
| bmbouter: what I did once is with our particular branching model you could extract the ticket ID and put it in the commit msg | 18:08 |
| → apoos_maximus joined | 18:09 |
| → keepLearning512 joined | 18:09 |
| → inkbottle joined | 18:10 |
| ← keepLearning512 left | 18:14 |
| ← ngui left | 18:15 |
| ← fission6 left | 18:16 |
| → ngui joined | 18:16 |
| → Arcaelyx joined | 18:16 |
| → moei joined | 18:19 |
| ← ngui left | 18:20 |
| → ngui joined | 18:20 |
| ← tombusby left | 18:20 |
|
bmbouter
| up|ime: ty I think we will use prepare-commit-msg | 18:21 |
|
| the branching idea makes sense too | 18:21 |
|
| ty | 18:21 |
| → tombusby joined | 18:21 |
| ← irqq left | 18:21 |
| → jstimm joined | 18:23 |
| → fission6 joined | 18:24 |
| ← sauvin left | 18:25 |
| ← ngui left | 18:25 |
| → ngui joined | 18:26 |
| ← ngui left | 18:30 |
| → ngui joined | 18:30 |
| → alyptik joined | 18:31 |
| ← jstimm left | 18:31 |
| ← gxt left | 18:33 |
| ← ngui left | 18:35 |
| → ngui joined | 18:36 |
| ← jelmer left | 18:37 |
| → jelmer joined | 18:37 |
| → aw1__ joined | 18:38 |
| ← ngui left | 18:40 |
| ← aw1_ left | 18:40 |
| → ngui joined | 18:40 |
| ← aw1__ left | 18:41 |
| ← fission6 left | 18:42 |
| → thiago joined | 18:44 |
| ← kapil____ left | 18:44 |
| ← kjartan left | 18:44 |
| ← iam730 left | 18:46 |
| → iam730 joined | 18:47 |
| → Geezus42 joined | 18:47 |
| ← iam730 left | 18:49 |
| → kjartan joined | 18:49 |
| → kenlee joined | 18:50 |
| → MonoGreyMatter joined | 18:50 |
| ← MonoGreyMatter left | 18:50 |
| → MonoGreyMatter joined | 18:51 |
| → ali1234 joined | 18:52 |
| ← rsrx left | 18:53 |
| → folkrav joined | 18:53 |
| → xrexeon joined | 18:58 |
| ← xrexeon left | 18:59 |
| → xrexeon joined | 18:59 |
| ← xrexeon left | 18:59 |
| → xrexeon joined | 19:00 |
| ← ngui left | 19:00 |
| → {HD} joined | 19:00 |
| → sanscoeu_ joined | 19:01 |
| ← sanscoeur left | 19:04 |
| → fission6 joined | 19:04 |
| ← jamiejackson left | 19:07 |
| → freeman42x joined | 19:07 |
| ← Zexaron left | 19:08 |
| → irqq joined | 19:10 |
| ← irqq left | 19:11 |
| → Sasazuka joined | 19:11 |
| → irqq joined | 19:11 |
| ← wildermind left | 19:12 |
| ← jwest left | 19:12 |
| ← venmx left | 19:13 |
| ← mat001_ left | 19:13 |
| ← inkbottle left | 19:13 |
|
nikivi
| how to list all submodules in a current git repo? | 19:13 |
|
| that is list all dirs that have .git in them | 19:13 |
|
| there is no .gitmodules file | 19:14 |
| → Dirak joined | 19:14 |
| → plexigras joined | 19:15 |
| → jwest joined | 19:15 |
|
_ikke_
| then they are not officially submodules | 19:15 |
|
| git ls-tree HEAD | grep '16000 commit' | 19:16 |
|
| you need to add one 0 | 19:16 |
|
| But that only works if they have been added to the parent repo | 19:17 |
| ← akushner left | 19:17 |
|
_ikke_
| If they haven't you have to use something like find .git | 19:17 |
|
| find . -name .git | 19:17 |
|
qqx
| That find command would also list "submodules" of "submodules" | 19:18 |
| → cur8or joined | 19:18 |
|
_ikke_
| ie, works recursively | 19:19 |
| → ngui joined | 19:20 |
| → akushner joined | 19:22 |
| ← freeman42x left | 19:29 |
| → freeman42x joined | 19:29 |
| → pfleck joined | 19:31 |
| → codebam joined | 19:31 |
| ← alyptik left | 19:32 |
| ← ngui left | 19:35 |
| → ngui joined | 19:36 |
| → dege joined | 19:36 |
| ← cswl left | 19:38 |
| → snowgoggles joined | 19:38 |
|
anddam
| osse: it kinda helps | 19:38 |
| ← anddam left | 19:40 |
| ← bebbet left | 19:41 |
| → bebbet joined | 19:42 |
| → mat001 joined | 19:46 |
| → Darcidride_ joined | 19:47 |
| ← ngui left | 19:50 |
| → ngui joined | 19:50 |
| ← Envil left | 19:51 |
| ← ngui left | 19:55 |
| → thiago_ joined | 19:59 |
| ← thiago left | 19:59 |
| → ngui joined | 20:00 |
| ← dpyro left | 20:00 |
| → dpyro joined | 20:01 |
| → cd joined | 20:04 |
| → gxt joined | 20:06 |
| → Makaveli7 joined | 20:08 |
| ← sanscoeu_ left | 20:08 |
| → acebrianjuan joined | 20:09 |
| → friendofafriend joined | 20:13 |
|
friendofafriend
| Howdy, I'd like to find just the differences between a repo and its fork. Could someone refer me to an example of this? | 20:15 |
| ← ngui left | 20:15 |
| ← Dirak left | 20:18 |
| → alyptik joined | 20:18 |
| ← hbautista left | 20:20 |
| → ngui joined | 20:20 |
| ← codebam left | 20:21 |
|
parsnip
| friendofafriend: add both repos as remotes and browse history locally. | 20:22 |
| → iam730 joined | 20:23 |
| ← mobile_c left | 20:24 |
|
friendofafriend
| parsnip: Is there some way to see what codebase a fork actually used? | 20:24 |
|
| I've got this repo with patches to the Linux kernel, and I'm just trying to generate a patchset I could (try to) apply to a newer kernel. | 20:25 |
| ← th3m1s left | 20:27 |
| → horribleprogram joined | 20:27 |
|
parsnip
| do the parent hashes not exist in the public linux kernel? | 20:28 |
| → GoGi joined | 20:29 |
| ← Pikk3wyn left | 20:29 |
|
GoGi
| How can I see in the history of which refs (if any) a certain commit is contained? | 20:30 |
| → codebam joined | 20:30 |
| ← troyt left | 20:30 |
| → troyt joined | 20:30 |
| ← horribleprogram left | 20:30 |
|
acebrianjuan
| Hi all | 20:31 |
|
friendofafriend
| parsnip: I really don't know anything about parent hashes or otherwise. Are changes from upstream not flagged in a fork? | 20:31 |
| → horribleprogram joined | 20:31 |
|
acebrianjuan
| I've got a question about sharing patches and applying them | 20:31 |
|
friendofafriend
| I'd actually have to just go hash checking, or something? | 20:32 |
|
acebrianjuan
| Please, have a look at this issue: https://github.com/gnss-sdr/gnss-sdr/issues/229 | 20:32 |
|
| You'll see that a contributor shares his patch in .txt format | 20:33 |
|
| I'm familiar with the pull request mechanism | 20:33 |
|
| But sharing patches is new for me | 20:33 |
|
| I'd like to know how does working with patches work | 20:34 |
|
friendofafriend
| acebrianjuan: This is a pretty good reference. https://www.thegeekstuff.com/2014/12/patch-command-examples/ | 20:35 |
|
acebrianjuan
| friendofafriend: thank you! | 20:36 |
|
| Do patches retain authorship when they are applied/merged? | 20:37 |
|
friendofafriend
| Retain authorship? I'm not sure what you mean. | 20:37 |
|
acebrianjuan
| friendofafriend: meaning that whoever wrote the patch is kept as the author of the code | 20:38 |
|
| in the git logs | 20:38 |
|
friendofafriend
| The patch has no interaction with git. | 20:39 |
| ← czart left | 20:39 |
|
friendofafriend
| So it will be as though you've made the modification yourself, like any other modification. | 20:39 |
| ← codebam left | 20:40 |
|
acebrianjuan
| If you check the shared .txt patch, there's a header with some metadata | 20:41 |
|
friendofafriend
| The "From:" and "Date" stuff? That's not applied to the file. | 20:41 |
|
acebrianjuan
| friendofafriend: ok, that's what I was referring | 20:42 |
| ← xmate left | 20:42 |
| → mobile_c joined | 20:42 |
|
acebrianjuan
| friendofafriend: but check this out: https://github.com/gnss-sdr/gnss-sdr/commit/63e90f862ffde4b65e6d12185cff433de10e5f43 | 20:42 |
|
| you'll see that GitHub states: "sergey-nik authored and carlesfernandez committed on Dec 13, 2018" | 20:43 |
|
friendofafriend
| acebrianjuan: That was done externally somehow. | 20:45 |
|
acebrianjuan
| so in some way or the other, the author is credited for his patch | 20:45 |
|
friendofafriend
| That was not accomplished by the patch. | 20:45 |
|
acebrianjuan
| ok | 20:45 |
|
| friendofafriend: https://stackoverflow.com/questions/25327743/what-flow-causes-github-commits-that-are-authored-by-one-user-but-committed | 20:47 |
|
| "Causing the two to point to different people can happen on rebasing, editing a commit (e.g. amending), doing a commit on behalf of someone else (e.g. by specifying --author), applying patches (git am), squashing (e.g., on merge or rebase), or cherry-picking." | 20:48 |
|
friendofafriend
| Sure, but that's not being caused by your patch. | 20:48 |
|
| Someone is fooling around with git, after the file is patched, to cause attribution to an author. | 20:49 |
|
acebrianjuan
| friendofafriend: what about applying patches with git am? | 20:49 |
|
| just asking | 20:50 |
|
e
| yes, git am will preserve the authorship info | 20:51 |
| → th3m1s joined | 20:52 |
|
acebrianjuan
| e: indeed, just checked that with: git help am | grep -i "author" | 20:52 |
|
| "The commit author name is taken from the "From: " line of the message" | 20:53 |
|
e
| the signed-off-by line makes me think that's what happened with the example you linked | 20:54 |
|
| in general, on github specifically, rebases are probably the more likely cause of author != committer | 20:54 |
|
acebrianjuan
| ok, thank you both :) | 20:56 |
| ← horribleprogram left | 20:56 |
|
friendofafriend
| Good luck with your project, acebrianjuan. | 20:56 |
| ← dilfridge left | 20:58 |
|
friendofafriend
| Is there some way to generate an archive of only files that have been changed between one repo and its fork? | 20:58 |
|
| Or better yet, a patchset? | 20:58 |
| → dilfridge joined | 20:59 |
| → Dirak joined | 21:00 |
| ← Darcidride_ left | 21:03 |
| ← th3m1s left | 21:04 |
| → sanscoeur joined | 21:04 |
| → th3m1s joined | 21:04 |
| → codebam joined | 21:05 |
| ← apoos_maximus left | 21:05 |
| → Sasazuka__ joined | 21:08 |
| ← th3m1s left | 21:10 |
| ← mobile_c left | 21:11 |
| ← pfleck left | 21:11 |
| ← fission6 left | 21:11 |
| ← Sasazuka left | 21:11 |
| → fission6 joined | 21:16 |
| → th3m1s joined | 21:17 |
| ← th3m1s left | 21:22 |
| → th3m1s joined | 21:22 |
| ← th3m1s left | 21:22 |
| → z1haze joined | 21:24 |
|
z1haze
| Hello! I have a question about --force destructive pushes.. i understand the it can rewrite history, etc.. but the commits are never really 'gone' right? they are just orphaned.. so if someone rebased onto a branch then force pushes,, and then a week later they want to reset back to the last original commit to that branch before the rebase.. they could in theory couldnt they? | 21:25 |
|
koala_man
| will such orphaned commits disappear in a gc? | 21:26 |
|
z1haze
| i mean, i guess you could also just reset the branch, and just cherry pick the actual branch commits right | 21:26 |
|
| just tryin to go about this disaster in the 'best' way | 21:27 |
|
_ikke_
| orphaned objects will be deleted after about 3 months (the default reflog expire time) | 21:27 |
| → th3m1s joined | 21:31 |
| ← fattredd left | 21:31 |
| ← n3wborn left | 21:33 |
| → neilthereildeil joined | 21:36 |
| → ferdna joined | 21:36 |
| → pfleck joined | 21:36 |
| ← Trieste left | 21:37 |
|
neilthereildeil
| hi i just checked out an old commit and git committed something on top of it. and then i created a new branch with "git branch BranchName HEAD". I saw the branch was created. now when i commit something on this same branch, why does the commit go ahead of the branch? the branch should be updated to point to the tip, right? | 21:38 |
| ← cdown left | 21:38 |
| ← Dirak left | 21:38 |
| → Trieste joined | 21:39 |
| → ozcanesen joined | 21:40 |
|
_ikke_
| neilthereildeil: you need to check out the branch first | 21:41 |
|
| just creating it is not enough | 21:41 |
| ← Phylock left | 21:44 |
| ← ngui left | 21:45 |
| → Phylock joined | 21:46 |
| ← rullie left | 21:47 |
| → Dirak joined | 21:48 |
| → ngui joined | 21:50 |
| → hofmann3900 joined | 21:50 |
| ← th3m1s left | 21:53 |
|
edman007
| Hey, so I'm trying to find the commit that deleted a particular variable, so when I do git blame --reverse v3.4, when I know the line existed in v3.4, it shows a commit 'adc1ef1e37358' as the one I want, but doing git diff adc1ef1e37358~ adc1ef1e37358 doesn't appear to show that line changing... | 22:00 |
| → hbautista joined | 22:00 |
|
edman007
| so when a reverse git blame shows a commit, how do I view that commit? | 22:00 |
| ← Sasazuka__ left | 22:01 |
| ← dpyro left | 22:01 |
| → dpyro joined | 22:02 |
|
neilthereildeil
| _ikke_: yea i did check out that branch | 22:02 |
| → Sasazuka joined | 22:02 |
|
neilthereildeil
| _ikke_: ok, i shouldnt git checkout the commit or head? i have to say the branch name specifcaly? | 22:03 |
|
| hmm i see that i did that... | 22:03 |
|
| im looking in bash histoy | 22:03 |
| ← plexigras left | 22:04 |
|
neilthereildeil
| git checkout refs/heads/branchName; make changes; git add changes; git commit | 22:04 |
|
| what am i doing wrong? | 22:05 |
| ← dege left | 22:10 |
| ← codebam left | 22:10 |
| ← fission6 left | 22:12 |
| ← neilthereildeil left | 22:15 |
| → qassim joined | 22:16 |
| → libertyprime joined | 22:17 |
| ← xrexeon left | 22:18 |
| → dre_ joined | 22:19 |
| → fission6 joined | 22:20 |
| → blackmesa joined | 22:21 |
| → dege joined | 22:23 |
| ← ngui left | 22:25 |
| → ngui joined | 22:26 |
| ← SpeakerToMeat left | 22:28 |
| → Toadisattva joined | 22:29 |
| ← friendofafriend left | 22:29 |
| ← ngui left | 22:30 |
| → ngui joined | 22:30 |
| ← blackmesa left | 22:32 |
| → klotzhauer joined | 22:33 |
| ← ngui left | 22:35 |
| ← orbyt_ left | 22:35 |
| → ngui joined | 22:36 |
| ← ngui left | 22:40 |
| → ngui joined | 22:40 |
| ← scr267 left | 22:41 |
| → brandonkal joined | 22:45 |
| ← rkta left | 22:45 |
| → rkta joined | 22:46 |
| ← MonoGreyMatter left | 22:50 |
| ← fission6 left | 22:50 |
| → codebam joined | 22:51 |
| ← pfleck left | 22:54 |
| ← skered left | 22:56 |
| ← foul_owl left | 22:56 |
| ← kjartan left | 22:57 |
| → fission6 joined | 22:58 |
| ← mat001 left | 22:58 |
| ← greggerz left | 23:00 |
| → mat001 joined | 23:02 |
| → kjartan joined | 23:02 |
|
z1haze
| i have 2 branches that have the same parent commit.. what determines if i can merge 1 branch into another? | 23:04 |
| ← tombusby left | 23:04 |
|
z1haze
| its not giving me an option to merge the direction I want to merge, and I want to understand why that is | 23:04 |
| → tombusby joined | 23:04 |
| ← thiago_ left | 23:07 |
| → sQVe joined | 23:09 |
| → orbyt_ joined | 23:11 |
| → foul_owl joined | 23:11 |
| ← ferdna left | 23:13 |
| → skered joined | 23:17 |
| ← dre_ left | 23:17 |
|
mud
| z1haze: What isn't giving you the option? What happens when you try? | 23:19 |
| → Celmor joined | 23:20 |
| ← fission6 left | 23:21 |
|
Celmor
| I work with a git repo on 2 computers, one of them has gotten behind and I can't pull as it keeps reporting 'error: Your local changes to the following files would be overwritten by merge:' etc., how can I just "force" the pull and overwrite the old state of my local repo on that computer? git pull --force won't do it | 23:22 |
| → thejunkjon joined | 23:22 |
|
thejunkjon
| has anyone seen an issue before where git-remote-http just hangs and uses 100% cpu? | 23:22 |
|
mud
| Celmor: you just want the local state and history of that branch to exactly equal the remote one? | 23:23 |
|
Celmor
| yes | 23:23 |
|
thejunkjon
| I am using git version: git version 2.20.1 | 23:23 |
|
Celmor
| someone the local docs got stuff like '<<<<<<< HEAD' or '>>>>>>> 5d30c9436419b383afdc0dd2b8ba0c06a24b810d' inserted so it's different from any tracked commit | 23:23 |
| ← ozcanesen left | 23:24 |
|
mud
| That's not a merge (or pull). That's git fetch && git reset --hard @{u} i believe. Take a backup in case i'm wrong | 23:24 |
|
Celmor
| I have the current repo on my other computer anyway | 23:24 |
|
mud
| Those look like conflict markers. Are you in the middle of a merge? | 23:24 |
|
Celmor
| well, I tried editing the a file and commit, then deleted that commit as I noticed those docs were way behind | 23:25 |
|
mud
| You might have to git merge --abort if you are, i dunno | 23:25 |
| ← tombusby left | 23:25 |
|
Celmor
| fatal: There is no merge to abort (MERGE_HEAD missing). | 23:25 |
| → tombusby joined | 23:25 |
|
Celmor
| thanks 'git reset --hard @{u}' did it | 23:25 |
|
mud
| Might be a merge where someone accidentally commited the conflict markers then. | 23:26 |
|
| Cool | 23:26 |
|
Celmor
| what does @{u} refer to? | 23:26 |
|
mud
| It's the 'upstream' branch. The one that would be pulled from | 23:26 |
|
| Man gitrevisions should have it | 23:27 |
|
| Hm, bot don't like me maybe | 23:27 |
|
| Locally 'git help revisions' should show it | 23:28 |
| ← AtumT left | 23:28 |
|
Celmor
| No manual entry for gitrevision | 23:28 |
|
| oh, plural | 23:29 |
| → horribleprogram joined | 23:29 |
|
Celmor
| got it, thanks | 23:30 |
|
mud
| Anytime | 23:30 |
|
z1haze
| what is the easist way to undo a rebase? create a new branch and cherry pick the original commits? | 23:30 |
|
mud
| z1haze: That won't result in exactly the original commits. The reflog would be the way to go | 23:31 |
| ← horribleprogram left | 23:32 |
|
z1haze
| i dont know how to do that :\ | 23:32 |
| ← xcm left | 23:32 |
| → xcm joined | 23:32 |
|
mud
| Look for the original ref in git reflog thebranchname and use that how you like, create a new branch from it, reset the old, etc | 23:32 |
| ← jakogut left | 23:33 |
| ← causasui left | 23:33 |
| ← dilfridge left | 23:33 |
| ← orbyt_ left | 23:34 |
| ← irqq left | 23:35 |
| → causasui joined | 23:37 |
| ← libertyprime left | 23:47 |
| ← akushner left | 23:48 |
| → orbyt_ joined | 23:49 |
| ← sQVe left | 23:49 |
| → sgn joined | 23:50 |
| → victorqueiroz joined | 23:50 |
| ← Revan- left | 23:51 |
| ← Makaveli7 left | 23:52 |
| ← manuelschneid3r left | 23:54 |
| → sanscoeu_ joined | 23:56 |
| → Bobdude joined | 23:58 |
| ← mat001 left | 23:59 |
| → leeN joined | 23:59 |
| ← sanscoeur left | 23:59 |