| 2019-04-06 |
|
osse
| It was just that it seemed you were looking for a very technical answer and were very confused. | 00:00 |
|
| I was thinking "... but how it different from any other fetch?" | 00:00 |
|
nightshift
| That's what I thought, i've been sitting through this for the last several days trying to figure out why soni just doesn't use tags. But, of course, if it's a repo you don't control | 00:00 |
|
rafasc
| with default settings, anything else is fetched by walking the DAG using those references as starting points. | 00:00 |
| → learningc joined | 00:00 |
| ← de-facto left | 00:01 |
| ← bs left | 00:01 |
| → de-facto joined | 00:01 |
| ← moo left | 00:02 |
|
rafasc
| for --deepen, it basically sends a depth-request in the negotiation phase. | 00:03 |
|
Soni
| so, does deepen fetch everything you already have? | 00:03 |
|
rafasc
| What you already have is not transferred. | 00:03 |
|
| if you --deepen=10, you only transfer 10 commits. | 00:04 |
|
Soni
| but how, if you're not allowed to fetch from a commit? | 00:04 |
| → altgray joined | 00:04 |
| → bs joined | 00:06 |
| ← bs left | 00:07 |
|
rafasc
| Because you are always fetching from a reference. With deepen=10, you say something like to the server: I have HEAD~123..HEAD, please give me more 10 commits. | 00:08 |
| → jelmer joined | 00:09 |
|
rafasc
| then the server goes ahead and sends you HEAD~112..HEAD~122 | 00:09 |
|
Soni
| okay | 00:09 |
|
| can I lie to the server | 00:10 |
|
rafasc
| No | 00:10 |
|
Soni
| why not | 00:10 |
| ← jelmer left | 00:10 |
| ← cbreak left | 00:10 |
| → jelmer joined | 00:10 |
| → cbreak joined | 00:11 |
|
rafasc
| because https://github.com/git/git/blob/master/Documentation/technical/pack-protocol.txt | 00:12 |
| ← xmate left | 00:13 |
|
Soni
| ah, because deltas | 00:13 |
|
| fucking deltas | 00:14 |
|
| any workarounds? | 00:14 |
| → bs joined | 00:14 |
|
rafasc
| workaround for what? | 00:14 |
|
Soni
| for needing to apply deltas onto what I have | 00:15 |
|
nightshift
| more disk space/memory, so you can do a standard fetch? | 00:15 |
|
Soni
| nightshift: can't do | 00:15 |
|
nightshift
| Yeah, I know, but, also kind of the point | 00:15 |
|
rafasc
| he it goes. Can't do, can't say... | 00:15 |
|
Soni
| can I just run the algorithms on the incoming network data and skip the disk entirely? | 00:16 |
|
| I really don't care about bandwidth at this point | 00:16 |
|
| I'm not paying for it anyway | 00:16 |
|
rafasc
| What's the question in the first place? | 00:16 |
|
| !xy | 00:16 |
|
gitinfo
| You are asking about a solution, but we can help you a lot better if you could describe the actual problem you are trying to solve. | 00:16 |
|
Soni
| need to find a commit from a resource-constrained system | 00:17 |
|
| that's literally my problem | 00:17 |
|
nightshift
| Soni, I think that was mentioned when you first started asking use. git is a VERY disk intensive processes, you either need enough space to write, or enough RAM to keep it all in a ram disk | 00:17 |
|
Soni
| nightshift: what if I don't have either? | 00:17 |
|
| are there any workarounds? | 00:17 |
|
| can I just parse the data as it comes in and skip what I don't care about? | 00:17 |
|
| can I just keep enough RAM for the deflate or w/e? | 00:17 |
|
nightshift
| Then you need to find a completely different tool to solve your problem, especially since you refuse to tell us your ACTUAL use case | 00:18 |
| ← iam730 left | 00:18 |
| → orbyt_ joined | 00:18 |
|
nightshift
| No, you need to keep everything you fetch, until you get what you want. Once you've got what you want, you can toss everything newer, and older, but not until you have the commit you want | 00:18 |
| ← bs left | 00:19 |
|
Soni
| I don't need the files | 00:19 |
|
| at all | 00:19 |
|
nightshift
| then, what DO you need? | 00:19 |
|
Soni
| just to check if the commit itself exists | 00:19 |
|
| I don't care about the files in the repo | 00:20 |
|
nightshift
| why? | 00:20 |
|
| nightshift headdesk | 00:20 |
|
Soni
| so I know it's a fork? | 00:20 |
| ← Sasazuka left | 00:20 |
|
nedbat
| Soni: you have the attention of experts willing to help you. Explain the entire problem. What are you building? | 00:20 |
| → iam730 joined | 00:21 |
|
Soni
| a thing that looks at forks | 00:21 |
|
nightshift
| why? | 00:21 |
|
Soni
| when they stop being forks, it stops looking at the ex-forks | 00:21 |
|
nedbat
| Soni: great. say more. What is it going to do? | 00:21 |
|
Soni
| that's it | 00:21 |
|
nedbat
| Soni: how would something stop being a fork? | 00:21 |
|
Soni
| with force-push | 00:21 |
| → bs joined | 00:21 |
|
Soni
| something that removes the specific commit I'm looking for | 00:21 |
|
| or just make a new branch and kill the fork branch | 00:22 |
| ← mixaz left | 00:22 |
|
nedbat
| Soni: maybe i don't understand what you mean by fork? What commit are you looking for? Where did the commit come from? | 00:22 |
|
nightshift
| Are you ultimately checking to see if someone stole your work? | 00:22 |
|
nedbat
| Soni: and btw, why do you want to monitor repos for forkness? | 00:22 |
|
rafasc
| there is --negotiation-tip=, but I don't even know if this would help. | 00:22 |
|
Soni
| a fork is any repo that contains the commit but isn't run by me | 00:22 |
|
nightshift
| FINALLY | 00:23 |
|
nedbat
| Soni: can you say more about "the commit"? Is it really a single commit you are looking for? | 00:23 |
|
Soni
| nightshift: no, these are mail-order repos | 00:23 |
|
| nedbat: it's an arbitrary commit specified by the person who runs my tool | 00:23 |
|
nedbat
| Soni: what is this person trying to achieve? Tell us the whole thing. | 00:23 |
|
Soni
| nightshift: i.e. person sends me an email saying they want me to look at their fork and I add it to the thing | 00:23 |
|
osse
| Git fetch runs another program under the hood to do the fetching (e.g. git receive-pack). I suppose it would be possible to invoke that directly, but you customize the arguments or data to pretend you have that commit and you want to deepen with 1 | 00:23 |
|
Soni
| and it autodetects if it stops being a fork | 00:23 |
|
nedbat
| Soni: why would this person do that? | 00:23 |
|
osse
| something like that | 00:23 |
|
Soni
| nedbat: because I'm anti-centralization | 00:24 |
|
nedbat
| Soni: "stops being a fork" still doesn't sound right to me. A repo is always a fork of the thing it started from, it just may have diverged far from it. | 00:24 |
| ← bs left | 00:24 |
|
Soni
| nedbat: in which case it should still have the commit that identifies it as a fork | 00:24 |
|
rafasc
| osse: as someone who tried messing with upload-pack and receive-pack, it's not that simple. | 00:24 |
|
nedbat
| Soni: how frequently do you think a repo will be force-pushed to no longer have anything in common with it's original repo? That sounds like a really unusual thing to happen. | 00:25 |
|
Soni
| nedbat: some caching will be done with the latest heads or so | 00:25 |
|
nedbat
| Soni: i don't know what that is a reply to. | 00:25 |
|
Soni
| i.e. on first run it'll scan the whole tree | 00:25 |
|
nedbat
| Soni: let's talk about the "unforking" idea. | 00:26 |
|
| Soni: how frequently do you think a repo will be force-pushed to no longer have anything in common with it's original repo? That sounds like a really unusual thing to happen. | 00:26 |
|
Soni
| and then, if it finds the "fork" commit, it'll store a handful of the commit IDs for the newest commits | 00:26 |
|
| if those disappear then it'll do a full rescan | 00:26 |
|
| full rescans are quite rare tbh but should still fit within the resource constraints | 00:27 |
|
nedbat
| Soni: i don't think you're listening to my question | 00:27 |
|
Soni
| nedbat: you're asking me if I should even bother with this and allow anyone to hijack anything | 00:27 |
| ← gloomy_ left | 00:27 |
| → bs joined | 00:27 |
|
nedbat
| Soni: do you have an example of someone hijacking a repo like that? | 00:27 |
|
Soni
| nedbat: yeah, it happened a while back with what was it... | 00:28 |
|
| it's been a while, sorry | 00:28 |
|
| I think I still used windows back then so it's on a dead HDD :D | 00:28 |
|
nedbat
| Soni: you're building a tool to detect a thing that you know has happened once, in the distant past, it sounds like. | 00:29 |
|
Soni
| but yeah the project simply vanished, killed all commits and just pushed an empty repo | 00:29 |
|
| nedbat: yeah, I am | 00:29 |
|
nedbat
| Soni: btw, why does it have to run on a resource-constrained machine? | 00:29 |
|
Soni
| not the main goal this is just a safety thing | 00:29 |
|
| nedbat: because this is aimed at rpis and shitbox VPSes | 00:29 |
|
nedbat
| Soni: why? | 00:30 |
| ← bs left | 00:30 |
|
Soni
| nedbat: because that's my uh... | 00:30 |
|
nedbat
| Soni: it seems to be the main stumbling block. | 00:30 |
|
| Soni: larger machines are not uncommon | 00:30 |
|
Soni
| because it's aimed at those ppl | 00:30 |
|
| it's my what do you call it | 00:30 |
| ← cliluw left | 00:30 |
|
nightshift
| what people? | 00:30 |
|
Soni
| target demographic? | 00:30 |
|
nedbat
| Soni: to be blunt, it sounds like you are designing for poverty-stricken paranoids. | 00:30 |
|
Soni
| idk | 00:31 |
|
| nedbat: what if I am? | 00:31 |
|
nedbat
| Soni: then you are making your life difficult, and we don't know how to help you build that. | 00:31 |
|
nightshift
| Then, as we've already told you, you've picked the wrong tool | 00:31 |
|
Soni
| what if I want ppl to self-host this on their phones or on a cheap pi? | 00:31 |
|
| or on a shitbox VPS? | 00:32 |
|
nedbat
| Soni: it might not be possible. | 00:32 |
| → wootehfoot joined | 00:32 |
|
Soni
| nedbat: I do not care about bandwidth | 00:32 |
|
nightshift
| it's not a bandwidth issue, Soni, it's a diskspace issue | 00:32 |
|
nedbat
| Soni: great. but you've given yourself a difficult contraint | 00:32 |
| → cliluw joined | 00:32 |
|
Soni
| in fact for all I care I could just seek the git thingies all the time | 00:32 |
|
nedbat
| Soni: btw, why run it on one machine? These sound like the kind of people that would welcome a federated effort | 00:32 |
|
Soni
| and by "seek" I mean request everything all over until I get to the point I care about | 00:33 |
|
| over. and over. and over. | 00:33 |
| → nurdie joined | 00:33 |
|
Soni
| no need to worry about bandwidth. | 00:33 |
|
nightshift
| btw, someone that is so poor the best they can manage is a pi with an 8gb card, isn't likely to have unlimited bandwidth | 00:33 |
|
nedbat
| Soni: until you are banned. | 00:33 |
|
Soni
| nightshift: shitbox VPS | 00:33 |
| → bs joined | 00:34 |
|
Soni
| nedbat: so what? | 00:34 |
|
nedbat
| Soni: what are you responding to? | 00:34 |
|
Soni
| "until you are banned" | 00:34 |
|
| if there's no other way to do it then there's no other way to do it | 00:34 |
|
| so you just do it the only way you can do it | 00:34 |
|
nedbat
| Soni: i just assumed you wanted this thing to keep monitoring. | 00:34 |
|
nightshift
| yeah, I can't even afford a shitbox VPS, technically I'm in your demographic, but, you don't what I was able to do? Get my pi a 500gb hdd. | 00:34 |
|
Soni
| nedbat: besides, this is just the initial scan | 00:35 |
|
nedbat
| Soni: we don't know how to build the thing you want. | 00:35 |
|
Soni
| the excessive bandwidth usage is very rare in normal operation | 00:35 |
|
nightshift
| but high disk/memory usage is to be expected, aka, what you want to do isn't possible | 00:36 |
|
Soni
| you don't need a lot of disk or RAM when you can just use a remote server as disk/RAM | 00:36 |
|
| and all I'll be doing is an hourly shallow (1-commit) head clone | 00:37 |
| ← bs left | 00:37 |
|
nedbat
| Soni: if you have a remote server for disk, then why are you talking about limited disk? | 00:37 |
|
Soni
| nedbat: "disk" in this case means repeating the request as many times as needed | 00:37 |
| ← nurdie left | 00:38 |
| ← tm007 left | 00:38 |
|
Soni
| it's not that I have disk it's that I don't need it | 00:38 |
|
| if I need a specific delta I just fetch the thing again and repeat until I have everything I need, without keeping any of it in RAM *or* disk | 00:39 |
|
nedbat
| Soni: you are talking as if you have a thing that works. | 00:40 |
|
Soni
| nedbat: I'm talking as if I wanna do an awful thing because nobody can come up with an alternative | 00:40 |
|
nedbat
| Soni: ok, you have a plan then. | 00:40 |
|
Soni
| nedbat: do you have an alternative | 00:40 |
|
nedbat
| Soni: no, i told you we don't know how to build the thing you want | 00:40 |
| ← jelmer left | 00:42 |
| → bs joined | 00:43 |
|
rafasc
| nedbat: can I contact you via DM? | 00:43 |
|
nedbat
| any time | 00:44 |
| ← wootehfoot left | 00:44 |
| ← bs left | 00:45 |
| ← fassl left | 00:46 |
| → bs joined | 00:50 |
| ← learningc left | 00:52 |
| ← bs left | 00:53 |
| ← omry left | 00:53 |
| → omry joined | 00:54 |
| → nurdie joined | 00:54 |
| → bs joined | 00:58 |
| ← nurdie left | 00:58 |
| ← bs left | 00:59 |
| ← moldybits left | 01:00 |
| ← stux|RC-only left | 01:01 |
| → gloomy joined | 01:02 |
|
Soni
| can I size-limit git? | 01:02 |
| → bs joined | 01:02 |
|
Soni
| also remember back when you could run git on 256MB of RAM and 20GB of disk | 01:03 |
|
| or w/e it was back on the i386 | 01:03 |
|
| might've been less | 01:04 |
|
rafasc
| checkout git from that time? | 01:04 |
| ← lucasb left | 01:04 |
|
Soni
| can I use that old a git with something like github? | 01:04 |
|
rafasc
| yes, the protocol is really stable. But I doubt you'll gain from it. | 01:06 |
|
| something that might interest you: https://www.eclipse.org/lists/jgit-dev/msg03073.html | 01:06 |
|
| not directly related to your problem, but related with the motivation you seem to have. | 01:07 |
|
Soni
| I want ppl to selfhost and fork widely | 01:07 |
| ← bs left | 01:08 |
|
Soni
| I don't want consensus, I want competition | 01:08 |
|
rafasc
| But people can already do that? | 01:08 |
|
| git is distributed. I can fetch from you without any 3rd parties involved | 01:08 |
|
Soni
| you clearly don't understand the motivation | 01:08 |
|
rafasc
| I do not. That's true. | 01:08 |
|
Soni
| I want a project without a BDFL. without an upstream. | 01:09 |
|
| a project as diverse as the ppl who use it. | 01:09 |
|
| I want a project driven by the community and its needs. | 01:10 |
|
| no PRs, just community. | 01:11 |
|
nedbat
| Soni: that sounds great, but why do you need a hijack-detector to do that? The people will see it happen. | 01:11 |
|
rafasc
| like an anarchy repository? | 01:11 |
|
Soni
| nedbat: so you can run it on an unmonitored server | 01:11 |
| ← theoceaniscool left | 01:11 |
|
rafasc
| anyone can push anything they want? | 01:11 |
|
Soni
| rafasc: no | 01:11 |
|
| these are forks | 01:11 |
|
| each fork is on its own server | 01:12 |
| ← zonixo left | 01:12 |
|
Soni
| it just lists all of them in activity order | 01:12 |
| → finalbeta joined | 01:12 |
| ← ggSo left | 01:12 |
|
Soni
| gives all of them the same space | 01:12 |
|
| it's definitely inspired by anarchy, but not the modern notion of anarchy (a chaotic mess) but the roots of anarchy, which is about trust and stuff (don't feel like explaining this right now) | 01:14 |
| ← dviola left | 01:14 |
|
Soni
| anarchy roots: someone makes something, they ask you to put an ad up for them, you do it or you don't based on whether you trust them or vice-versa | 01:15 |
| → nurdie joined | 01:15 |
|
Soni
| modern notion of anarchy: someone makes something, they torture you into putting an ad up for them and then you slice their throat later or something | 01:15 |
|
| very different | 01:16 |
| ← Essadon left | 01:17 |
|
rafasc
| and you want that hijack-detector to make sure that 'ad' still points to what you accepted, and not to someone that might've be force pushed? | 01:17 |
| → misuto joined | 01:18 |
| ← nurdie left | 01:19 |
| ← yyy left | 01:20 |
| → sitaram joined | 01:21 |
| ← gloomy left | 01:21 |
|
Soni
| not really | 01:26 |
|
| I just want the projects to still refer to the thing that they're supposed to refer to | 01:26 |
|
| even if they diverge a lot | 01:26 |
|
| all I care about is the commit | 01:26 |
| → bs joined | 01:27 |
|
Soni
| even if they push a commit on top of everything that clears everything and starts fresh | 01:27 |
|
nedbat
| Soni: but the projects could still have that commit, and yet have nothing to do with the original code. | 01:27 |
|
Soni
| nedbat: exactly | 01:27 |
|
| and that's okay | 01:27 |
|
nedbat
| Soni: why is it ok? I could hijack your project and you wouldn't know it. | 01:27 |
|
Soni
| nedbat: that's fine | 01:28 |
|
| I don't expect you to understand it | 01:28 |
|
| I don't expect most ppl to understand it until I have it working | 01:28 |
|
nedbat
| Soni: if you can't explain it so we can understand it, why would code explain it? | 01:29 |
|
Soni
| nedbat: who said anything about code? | 01:29 |
| ← tang^ left | 01:29 |
|
nedbat
| Soni: "until I have it working".... that's code. | 01:30 |
|
Soni
| (altho code will also be available and it'll eat its own dog food) | 01:30 |
|
| nedbat: that's a live demo | 01:30 |
| ← bs left | 01:30 |
|
nedbat
| Soni: ok, why will people understand it once you have it working? | 01:30 |
|
Soni
| nedbat: same way ppl understand git and github by using those things | 01:31 |
|
| if you ask me if git explains itself... no, it definitely doesn't. unless you already know some things. | 01:31 |
|
nedbat
| Soni: the hijack detector is designed to detect something that you say is very very rare. how will i understand it? | 01:31 |
|
Soni
| you learn those things by using it. | 01:31 |
|
| by playing with it you'll learn what a branch is, what a repo is, and so on | 01:31 |
|
| nedbat: oh. well, it's rare. so you'll likely never see it happen. | 01:32 |
|
nedbat
| Soni: ok, we're very far from the topic of #git. Good luck with your efforts. I think figuring out how to explain it would be a useful exercise for you. | 01:32 |
|
Soni
| and that's okay because it's only supposed to happen rarely. | 01:32 |
|
| nedbat: talking about git is off topic? | 01:33 |
|
rafasc
| if you want to refer to a commit, just tag the commit and gpg sign it. | 01:33 |
|
nedbat
| Soni: we haven't talked about git in a long time :) | 01:33 |
|
Soni
| <Soni> if you ask me if git explains itself... no, it definitely doesn't. unless you already know some things. <Soni> you learn those things by using it. <Soni> by playing with it you'll learn what a branch is, what a repo is, and so on | 01:33 |
|
| anyway I'm gonna sleep, good night o/ | 01:34 |
|
rafasc
| good night. | 01:34 |
| ← F0rTex left | 01:35 |
| → nurdie joined | 01:36 |
| → F0rTex joined | 01:36 |
| ← cfoch left | 01:40 |
| ← nurdie left | 01:41 |
|
nightshift
| Alright, now that the knives have been removed from my back, I'm having to dive into git-prompt.sh, cause, well, I kinda want to make the prompt just a bit more complicated when I'm in a repo | 01:42 |
|
rafasc
| nightshift: was that literal? o.O | 01:42 |
|
nightshift
| rafasc, no, there weren't literal knives in my back, just a feeling that there were, and that was what was keeping me from writing the function earlier | 01:43 |
|
rafasc
| GIT_PS1_SHOWUPSTREAM="verbose name git" | 01:43 |
|
| GIT_PS1_SHOWDIRTYSTATE=1 | 01:43 |
|
| GIT_PS1_SHOWSTASHSTATE=1 | 01:43 |
|
| GIT_PS1_SHOWUNTRACKEDFILES=1 | 01:43 |
|
| GIT_PS1_SHOWCOLORHINTS=1 | 01:44 |
|
| GIT_PS1_DESCRIBE_STYLE=branch | 01:44 |
|
| GIT_PS1_STATESEPARATOR='|' | 01:44 |
|
| complicated enough? | 01:44 |
|
nightshift
| rafasc, not quite. I want to switch from \w to \W in a repo | 01:46 |
|
| and then add showupstream=verbose | 01:46 |
|
| Not sure that's all that easy to do, but I'm looking at it. | 01:49 |
|
rafasc
| checking if git rev-parse --git-dir; then echo in repo; else echo not in repo; fi? | 01:53 |
|
nightshift
| rafasc, pretty much (just got there in the script), | 01:55 |
|
| obviously, I'd change out the echo statements for the appropriate arg to __git_ps1 | 01:57 |
| → nurdie joined | 01:57 |
|
nightshift
| but, that still brings me back to using a variable for that argument. Should be ok as long as I use something other than PS1 though, I think | 01:58 |
|
rafasc
| yeah. | 01:59 |
| → hailochild joined | 01:59 |
| → dre_ joined | 02:00 |
|
nightshift
| This should be interesting | 02:00 |
| ← dre_ left | 02:01 |
| ← nurdie left | 02:01 |
| → dre_ joined | 02:02 |
| → boombatower joined | 02:05 |
| ← hailochild left | 02:06 |
| ← boombatower left | 02:06 |
| → supernov1h joined | 02:07 |
| ← kent\n left | 02:07 |
|
nightshift
| osse, when I write this function, do I need to set all the GIT_PS1_ variables out of the function, or can I set them in it? | 02:07 |
| → hailochild joined | 02:08 |
|
rafasc
| any will do I think. | 02:10 |
| ← n3wborn left | 02:12 |
| ← hailochild left | 02:12 |
|
nightshift
| thanks. Worst case, I just switch it. Final question, I'm exporting those in my bashrc, but, shouldn't have to, right? | 02:12 |
|
rafasc
| No need to export them. | 02:16 |
|
nightshift
| ok. | 02:17 |
| → nurdie joined | 02:18 |
| ← nurdie left | 02:23 |
| → pigsalsa joined | 02:23 |
| ← Lucas_Gray left | 02:26 |
| ← lagothrix left | 02:30 |
| → lagothrix joined | 02:30 |
| ← orbyt_ left | 02:32 |
| → moldybits joined | 02:33 |
| → stitched_unicorn joined | 02:36 |
| → bashfulshell joined | 02:39 |
| → nurdie joined | 02:39 |
| → zonixo joined | 02:40 |
| → ggSo joined | 02:40 |
| ← nurdie left | 02:44 |
| ← Primer left | 02:44 |
| ← dre_ left | 02:49 |
| → dre_ joined | 02:49 |
| → pd09041999 joined | 02:52 |
| ← dpyro_ left | 02:52 |
| ← thiago left | 02:52 |
| ← rafasc left | 02:52 |
| → dpyro joined | 02:52 |
| → stux|RC-only joined | 02:53 |
|
nightshift
| Alright, function finished (took WAY longer than it should have, I had a brain fart when it came to getting the variables set). Time to test | 02:56 |
| dre_ → dre | 02:57 |
| amosbird_ → amosbird | 02:58 |
|
nightshift
| Almost there, two problems I need to fix, the first one is nightshift@nightshift:gitviewer (master u=)$ what is the u=? | 03:00 |
| → nurdie joined | 03:00 |
|
nightshift
| oooooo, that's the upstream, which, for some reason is showing null | 03:02 |
| ← zonixo left | 03:03 |
| ← ggSo left | 03:04 |
| → Beam_Inn joined | 03:04 |
| ← nurdie left | 03:06 |
|
nightshift
| ok, that's actually not an issue, I don't think, it's doing what it's supposed to. rev_parse was probably the wrong choice for checking if I'm in a repo, or not. What I really want is is to take advantage of repo_info | 03:08 |
| ← Beam_Inn left | 03:09 |
|
nightshift
| but, that doesn't seem to be an option | 03:10 |
|
| Oh well, I'll figure that out another day, maybe. I could just copy it into bashrc | 03:11 |
| ← mikecmpbll left | 03:16 |
| → nydel09 joined | 03:17 |
| → lalilulelo joined | 03:20 |
| → nurdie joined | 03:22 |
|
lalilulelo
| hello, I have a folder structure that includes "Assets/Editor" (i.e. it's Unity Engine). Editor was a git repository. Later on, I decided to make Assets a repository. I created a .gitignore that doesn't ignore the Editor directory, and then tried staging everything with git add ./*, commiting immediately afterwards. However, the Editor folder was ignored. Now I want to include the Editor folder again, and even after deleting its .git/ folder, no files | 03:25 |
|
| within Editor are showing up in git status. What am I doing wrong? | 03:25 |
| → mven joined | 03:26 |
| ← nurdie left | 03:26 |
| ← kjartan left | 03:27 |
| → Goplat joined | 03:27 |
| ← kerframil left | 03:28 |
| ← Cabanossi left | 03:30 |
|
nightshift
| laliulelo, first problem is you had repos within repos, there's additional setup that covers that. Unfortunately, I can't help with that part. There is a way to force Editor to be tracked now, let me see if I can find that part for you | 03:32 |
| → kjartan joined | 03:32 |
|
lalilulelo
| nightshift, thanks for responding, I'll wait | 03:33 |
|
| I might ask on StackOverflow as well because I can't for the life of me find much of anything about that on Google, at least in a way that I can phrase the problem in my query | 03:38 |
| → rsrx joined | 03:38 |
|
nightshift
| lalilulelo, try https://git-scm.com/docs/git-check-ignore first | 03:40 |
| → Cabanossi joined | 03:40 |
| ← justanotheruser left | 03:40 |
|
nightshift
| also https://stackoverflow.com/a/23296404 | 03:41 |
| ← dre left | 03:41 |
| → dre_ joined | 03:42 |
| → nurdie joined | 03:43 |
| ← dre_ left | 03:44 |
|
lalilulelo
| thanks for those | 03:45 |
|
nightshift
| of course | 03:45 |
| ← pd09041999 left | 03:45 |
|
lalilulelo
| hmm, git check-ignore returns nothing | 03:47 |
|
nightshift
| then try the other one | 03:47 |
| ← nurdie left | 03:47 |
|
lalilulelo
| wooow lol | 03:48 |
|
| so I tried it | 03:49 |
|
| and the Editor directory still doesn't show up as staged in git status | 03:49 |
| → pd09041999 joined | 03:51 |
|
lalilulelo
| I appreciate your help, nightshift, I guess I'll ask in StackOverflow so the question can stay there and help others eventually and whatnot | 03:52 |
|
nightshift
| no idea, is it showing as untracked, or just not showing up at all? | 03:54 |
| → justanotheruser joined | 03:55 |
| ← mven left | 03:57 |
|
lalilulelo
| not showing up at all | 03:57 |
|
nightshift
| that's really weird | 03:58 |
|
lalilulelo
| I'm guessing it's somehow treating that folder as part of a submodule or something | 03:59 |
|
nightshift
| Sorry I'm not a little more experienced | 03:59 |
|
| most likely | 03:59 |
|
| I don't deal with those at all, so I don't have the slightest clue how to fix it | 03:59 |
|
lalilulelo
| it's alright, it beats me too hahah | 03:59 |
|
| me neither, guess I'll have to try and read their docs | 04:00 |
|
| I was hopeful I would be able to fix this without dealing with that, lol | 04:00 |
|
nightshift
| hahahaha, git's docs are better than some, though. | 04:01 |
| ← Copenhagen_Bram left | 04:01 |
|
lalilulelo
| ah, I hope they'll be helpful enough | 04:02 |
|
nightshift
| me too | 04:02 |
|
| It's time for me to shut down for the day, good luck | 04:04 |
| → nurdie joined | 04:04 |
| ← nightshift left | 04:04 |
|
lalilulelo
| aaaa | 04:07 |
|
| this actually did it: https://stackoverflow.com/a/1789374/3579346 | 04:07 |
|
| and thanks :3 | 04:08 |
| → Copenhagen_Bram joined | 04:08 |
| ← fatalhalt left | 04:09 |
| ← nurdie left | 04:09 |
| ← stux|RC-only left | 04:15 |
| → shanks8080 joined | 04:24 |
| → nurdie joined | 04:25 |
| → stux|RC-only joined | 04:29 |
| ← nurdie left | 04:29 |
| ← freeman42x left | 04:32 |
| ← stux|RC-only left | 04:35 |
| → assemblyman joined | 04:46 |
| → nurdie joined | 04:46 |
| ← shanks8080 left | 04:46 |
| ← veegee left | 04:49 |
| ← nurdie left | 04:50 |
| ← inkbottle left | 04:52 |
| ← bashfulshell left | 04:54 |
| → pks_ joined | 05:02 |
| ← rsrx left | 05:02 |
| → kapil____ joined | 05:02 |
| ← pks left | 05:04 |
| pks_ → pks | 05:04 |
| ← zalt left | 05:06 |
| → nurdie joined | 05:07 |
| ← nurdie left | 05:12 |
| ← m0viefreak left | 05:12 |
| → Envil joined | 05:13 |
| ← KnoP left | 05:24 |
| ← jnewt_ left | 05:26 |
| → sauvin joined | 05:27 |
| → KnoP joined | 05:27 |
| → nurdie joined | 05:28 |
| → rsrx joined | 05:31 |
| ← rsrx left | 05:32 |
| ← justanotheruser left | 05:32 |
| → rsrx joined | 05:32 |
| ← nurdie left | 05:32 |
| ← rsrx left | 05:34 |
| → rsrx joined | 05:34 |
| ← rsrx left | 05:36 |
| ← KnoP left | 05:37 |
| → shanks8080 joined | 05:45 |
| → justanotheruser joined | 05:46 |
| → sternmull joined | 05:48 |
| → nurdie joined | 05:49 |
| → SkarmoutsosV joined | 05:50 |
| → dre_ joined | 05:53 |
| ← nurdie left | 05:54 |
| ← assemblyman left | 06:06 |
| → clime joined | 06:10 |
| → nurdie joined | 06:10 |
| ← pd09041999 left | 06:13 |
| → pd09041999 joined | 06:14 |
| ← nurdie left | 06:15 |
| ← niax left | 06:17 |
| ← GreenJello left | 06:19 |
| ← irqq left | 06:22 |
| ← pd09041999 left | 06:23 |
| → pd09041999 joined | 06:23 |
| → xmate joined | 06:23 |
| → nurdie joined | 06:31 |
| ← nurdie left | 06:36 |
| ← pR0Ps left | 06:37 |
| → niax joined | 06:39 |
| → mixaz joined | 06:40 |
| → nurdie joined | 06:52 |
| → zalt joined | 06:53 |
| → made2591 joined | 06:55 |
| → pR0Ps joined | 06:55 |
| ← nurdie left | 06:58 |
| → Raging_Hog joined | 06:58 |
| → RoriconKnight joined | 07:00 |
| → zonixo joined | 07:04 |
| → ggSo joined | 07:04 |
| ← dpyro left | 07:04 |
| → ricekrispie2 joined | 07:05 |
| ← ricekrispie left | 07:07 |
| ← made2591 left | 07:09 |
| → nurdie joined | 07:13 |
| ← SkarmoutsosV left | 07:18 |
| ← nurdie left | 07:18 |
| ← RoriconKnight left | 07:26 |
| ← wildlander left | 07:30 |
| ← sphalerite left | 07:33 |
| → nurdie joined | 07:34 |
| ← Goplat left | 07:36 |
| → sphalerite joined | 07:36 |
| → opalepatrick joined | 07:38 |
| ← opalepatrick left | 07:38 |
| ← zulutango left | 07:39 |
| ← nurdie left | 07:40 |
| ← kjartan left | 07:40 |
| → hussam joined | 07:42 |
| → kjartan joined | 07:45 |
| → czart joined | 07:50 |
| → in1t3r joined | 07:51 |
| ← altgray left | 07:52 |
| → spacesuitdiver joined | 07:55 |
| → nurdie joined | 07:56 |
| ← R2robot left | 07:57 |
| → keepLearning512 joined | 07:59 |
| ← nurdie left | 08:00 |
| → YuGiOhJCJ joined | 08:01 |
| ← keepLearning512 left | 08:03 |
| → nowhereman joined | 08:10 |
| ← dre_ left | 08:13 |
| Marmotte_ → Marmotte | 08:15 |
| ← zonixo left | 08:16 |
| ← ggSo left | 08:16 |
| → nurdie joined | 08:17 |
| → Lucas_Gray joined | 08:19 |
| ← spacesuitdiver left | 08:21 |
| ← Lucas_Gray left | 08:21 |
| ← nurdie left | 08:21 |
| → Lucas_Gray joined | 08:22 |
| ← Lucas_Gray left | 08:24 |
| → irqq joined | 08:27 |
| ← al-damiri left | 08:27 |
| → Lucas_Gray joined | 08:28 |
| → mikecmpbll joined | 08:35 |
| ← Lucas_Gray left | 08:38 |
| → nurdie joined | 08:38 |
| ← nurdie left | 08:42 |
| → crumbking joined | 08:44 |
| → learningc joined | 08:45 |
| ← crumbking left | 08:45 |
| → Lucas_Gray joined | 08:46 |
| → crumbking joined | 08:47 |
| → zulutango joined | 08:51 |
| ← osse left | 08:55 |
| → osse joined | 08:56 |
| ← yonder left | 08:56 |
| → altgray joined | 08:57 |
| ← zulutango left | 08:58 |
| ← xmate left | 08:59 |
| → nurdie joined | 08:59 |
| → dhollin3 joined | 09:01 |
| ← pd09041999 left | 09:03 |
| ← dhollinger left | 09:03 |
| ← nurdie left | 09:04 |
| → zulutango joined | 09:04 |
| ← nowhereman left | 09:05 |
| → martin-_-_ joined | 09:11 |
| ← Novae left | 09:11 |
| → Novae joined | 09:11 |
|
martin-_-_
| hi I wanted to go back to a specific commit and remove all commits which happend before | 09:11 |
|
| I did git reset --hard f234f283d4c41017e086e0e4708c8955cc180740 | 09:11 |
|
| git status tells me now HEAD detached at f234f28 | 09:12 |
|
| how can I attach it again? | 09:12 |
| → nurdie joined | 09:12 |
| → keepLearning512 joined | 09:14 |
| → pd09041999 joined | 09:15 |
| → libertyprime joined | 09:15 |
| → n3wborn joined | 09:16 |
| → nowhereman joined | 09:17 |
| ← nurdie left | 09:17 |
| ← keepLearning512 left | 09:19 |
| ← catsup left | 09:20 |
| → catsup joined | 09:20 |
| ← catsup left | 09:21 |
| → catsup joined | 09:21 |
| ← cd left | 09:22 |
| ← stitched_unicorn left | 09:25 |
| → powerbit joined | 09:31 |
| ndimitrij → ndim | 09:32 |
| → leeN joined | 09:33 |
| → cd joined | 09:37 |
| ← Novae left | 09:38 |
| → Novae joined | 09:41 |
| ← sunri5e_ left | 09:42 |
| ← zalt left | 09:44 |
| ← ricorambo left | 09:45 |
| → jottr joined | 09:45 |
| → made2591 joined | 09:46 |
| ← made2591 left | 09:47 |
| → made2591 joined | 09:47 |
| → sunri5e joined | 09:49 |
| ← xcm left | 09:51 |
| → xcm joined | 09:51 |
| ← Novae left | 09:55 |
| → Novae joined | 09:55 |
| ← czart left | 09:56 |
| ← leeN left | 09:58 |
| ← made2591 left | 09:59 |
| ← mikecmpbll left | 09:59 |
| ← jottr left | 09:59 |
| ← lankanmon left | 10:00 |
|
j416
| check your branch out before you reset. | 10:01 |
|
| also, you cannot remove commits before another commit by resetting; you need some more for that. Interactive rebase might be of use. | 10:02 |
|
| not quite sure what you mean. | 10:03 |
|
| martin-_-_: ^ | 10:03 |
| ← nowhereman left | 10:05 |
| → R2robot joined | 10:08 |
| → plexigras joined | 10:09 |
| → zonixo joined | 10:09 |
| → ggSo joined | 10:10 |
| ← sunri5e left | 10:14 |
| → sunri5e joined | 10:14 |
| ← Muzer left | 10:15 |
| → SkarmoutsosV joined | 10:20 |
| → m0viefreak joined | 10:22 |
| → GreenJello joined | 10:22 |
| → Muzer joined | 10:27 |
| ← hofmann3900 left | 10:28 |
| ← igemnace left | 10:28 |
| → theoceaniscool joined | 10:33 |
| ← GreenJello left | 10:34 |
| → keepLearning512 joined | 10:35 |
| ← Novae left | 10:37 |
| → Novae joined | 10:38 |
| → Regon joined | 10:41 |
| ← ggSo left | 10:42 |
| ← zonixo left | 10:43 |
| → zonixo joined | 10:43 |
| → ggSo joined | 10:43 |
| → dviola joined | 10:50 |
| → lankanmon joined | 10:50 |
| ← n3wborn left | 10:50 |
| ← nixdork left | 10:51 |
| → nixdork joined | 10:51 |
| ← martin-_-_ left | 10:51 |
| → made2591 joined | 10:54 |
| → bs joined | 11:00 |
| ← bs left | 11:00 |
| ← libertyprime left | 11:01 |
| → yyy joined | 11:01 |
| → freeman42x joined | 11:03 |
|
Soni
| how do I check if a repo can fetch from arbitrary commits? | 11:10 |
| → mikecmpbll joined | 11:20 |
| ← SkarmoutsosV left | 11:21 |
| ← mixaz left | 11:24 |
|
j416
| you cannot fetch from a commit, you fetch from a remote | 11:25 |
| → zalt joined | 11:27 |
| → basiclaser joined | 11:28 |
| → ferdna joined | 11:28 |
| ← made2591 left | 11:28 |
| → made2591 joined | 11:29 |
| ← made2591 left | 11:30 |
| → made2591 joined | 11:30 |
| → czart joined | 11:32 |
| ← yyy left | 11:39 |
| → czart_ joined | 11:42 |
| → dudek joined | 11:43 |
| ← czart left | 11:43 |
| → Makaveli7 joined | 11:45 |
|
osse
| you just have to try | 11:48 |
| → Achylles joined | 11:48 |
| ← irqq left | 11:49 |
| → Fernando-Basso joined | 11:55 |
| → dre_ joined | 11:59 |
| → opalepatrick joined | 12:06 |
| → bs joined | 12:08 |
| ← Shentino left | 12:09 |
| → Shentino joined | 12:10 |
| ← bs left | 12:12 |
| ← Fernando-Basso left | 12:12 |
| → bs joined | 12:14 |
| → z|bandito joined | 12:15 |
| ← opalepatrick left | 12:15 |
| ← bs left | 12:17 |
| zampano_ → zampano | 12:17 |
| → opalepatrick joined | 12:19 |
| → nowhereman joined | 12:19 |
| ← jstimm left | 12:24 |
| → bs joined | 12:24 |
| ← thejunkjon left | 12:27 |
| ← keepLearning512 left | 12:27 |
| ← opalepatrick left | 12:28 |
| ← ferdna left | 12:28 |
| → GreenJello joined | 12:31 |
| ← zalt left | 12:32 |
| ← bs left | 12:33 |
| → bs joined | 12:34 |
| ← Shentino left | 12:34 |
| → Shentino joined | 12:35 |
| ← GreenJello left | 12:36 |
| → greatgatsby joined | 12:37 |
| ← dre_ left | 12:38 |
| ← VLetrmx left | 12:40 |
| → frederfred joined | 12:41 |
|
Soni
| how do I check if a remote allows me to fetch from arbitrary commits? | 12:43 |
| → _kk22kk_ joined | 12:44 |
| → Essadon joined | 12:50 |
| ← Essadon left | 12:50 |
| → Essadon joined | 12:50 |
| ← JanC left | 12:54 |
| → JanC joined | 12:54 |
|
nedbat
| Soni: osse said, "you just have to try" | 12:56 |
| → gloomy joined | 12:56 |
| gloomy → crestfallen | 12:58 |
| crestfallen → Crestfallen | 12:58 |
| ← Crestfallen left | 12:59 |
| ← altgray left | 13:01 |
| → gloomy joined | 13:03 |
| ← gloomy left | 13:04 |
| ← greatgatsby left | 13:12 |
|
j416
| and you can still not fetch from commits | 13:13 |
| ← kjartan left | 13:18 |
| → Fernando-Basso joined | 13:21 |
| → kjartan joined | 13:23 |
| ← _kk22kk_ left | 13:24 |
| ← Muzer left | 13:25 |
| ← dudek left | 13:30 |
| → Muzer joined | 13:32 |
| ← dviola left | 13:34 |
| ← in1t3r left | 13:35 |
| → inkbottle joined | 13:39 |
| → lucasb joined | 13:43 |
| ← Anthaas left | 13:51 |
| → mixaz joined | 13:51 |
| → Anthaas joined | 13:52 |
|
osse
| j416: you can if the server allows it | 13:54 |
|
| see the uploadpack.allow* config options | 13:54 |
|
| unless I misunderstand those, of course | 13:55 |
| ← random_yanek left | 13:59 |
| ← theoceaniscool left | 14:02 |
| → igemnace joined | 14:04 |
| ← Makaveli7 left | 14:04 |
| → random_yanek joined | 14:06 |
| → bashfulshell joined | 14:10 |
|
j416
| osse: yes, but you still fetch from a remote. | 14:18 |
| → fatalhalt joined | 14:18 |
|
j416
| just trying to get the actual question clear | 14:18 |
| ← impermanence left | 14:19 |
|
j416
| in any case; seems it's been answered a couple of times now. :) | 14:19 |
| → zalt joined | 14:23 |
| ← Lucas_Gray left | 14:24 |
| → Xeago_ joined | 14:30 |
| → jelmer joined | 14:31 |
| ← jelmer left | 14:31 |
| ← Xeago left | 14:31 |
| Xeago_ → Xeago | 14:31 |
| → GreenJello joined | 14:33 |
| → irqq joined | 14:34 |
| → spacesuitdiver joined | 14:37 |
| ← made2591 left | 14:38 |
| ← spacesuitdiver left | 14:38 |
| → spacesuitdiver joined | 14:38 |
| → made2591 joined | 14:39 |
| → Lucas_Gray joined | 14:39 |
| ← made2591 left | 14:42 |
| dx_ob → Neel | 14:44 |
| ← GreenJello left | 14:46 |
| ← zalt left | 14:46 |
| ← donofrio left | 14:47 |
| → donofrio joined | 14:49 |
| ← justanotheruser left | 14:50 |
| → made2591 joined | 14:53 |
| → Xeago_ joined | 14:54 |
| ← Xeago left | 14:55 |
| Xeago_ → Xeago | 14:55 |
| → qu4ku joined | 14:56 |
| → boZipper joined | 14:57 |
| ← supernov1h left | 14:58 |
| ← boZipper left | 14:58 |
| → chiasmata joined | 14:58 |
| ← inkbottle left | 15:02 |
| ← chiasmata left | 15:04 |
| ← nowhereman left | 15:04 |
| ← ayjay_t left | 15:06 |
| → ayjay_t joined | 15:06 |
| → dpyro joined | 15:07 |
| ← hussam left | 15:12 |
| → jamiejackson joined | 15:13 |
| → leeN joined | 15:17 |
| ← YuGiOhJCJ left | 15:17 |
| dhollin3 → dhollinger | 15:19 |
| ← tralfaz left | 15:20 |
| → Wryhder joined | 15:25 |
| ← Lucas_Gray left | 15:25 |
| → mowcat joined | 15:26 |
| Wryhder → Lucas_Gray | 15:26 |
| ← mowcat left | 15:26 |
| → theoceaniscool joined | 15:26 |
| → yonder joined | 15:27 |
| → mowcat joined | 15:27 |
| → justanotheruser joined | 15:30 |
| → wildlander joined | 15:40 |
| → wreed joined | 15:44 |
| → wootehfoot joined | 15:46 |
| ← jamiejackson left | 15:46 |
| → opalepatrick joined | 15:48 |
| ← opalepatrick left | 15:49 |
| ← learningc left | 15:49 |
| → learningc joined | 15:50 |
| → jamiejackson joined | 15:51 |
| ← wreed left | 16:01 |
| → Phylock joined | 16:02 |
| ← SleePy left | 16:03 |
| → opalepatrick joined | 16:06 |
| ← leeN left | 16:06 |
| → SleePy joined | 16:07 |
| ← opalepatrick left | 16:08 |
| → opalepatrick joined | 16:10 |
| → jelmer joined | 16:11 |
| ← theoceaniscool left | 16:12 |
| → thiago joined | 16:14 |
| → GreenJello joined | 16:18 |
| → stux|RC-only joined | 16:24 |
| ← jamiejackson left | 16:27 |
| ← Lucas_Gray left | 16:28 |
| ← spacesuitdiver left | 16:29 |
| → jamiejackson joined | 16:32 |
| ← qu4ku left | 16:34 |
| ← Fernando-Basso left | 16:34 |
| → dviola joined | 16:36 |
| ← jamiejackson left | 16:38 |
| → theoceaniscool joined | 16:38 |
| → zalt joined | 16:46 |
| → jamiejackson joined | 16:47 |
| → chiasmata joined | 16:50 |
| ← mikecmpbll left | 16:51 |
| ← R2robot left | 17:01 |
| → altgray joined | 17:01 |
| → R2robot joined | 17:03 |
| → pd_09041999 joined | 17:08 |
| → hussam joined | 17:08 |
| ← pd09041999 left | 17:11 |
| → syn0 joined | 17:12 |
| ← mixaz left | 17:15 |
| ← opalepatrick left | 17:22 |
|
clime
| does anyone know in which version of git, -C switch was introduced? | 17:22 |
| mmattice_ → mmattic | 17:23 |
| mmattic → mmattice | 17:23 |
|
_ikke_
| 1.8.5 | 17:24 |
| ← dviola left | 17:24 |
|
clime
| _ikke_: thanks is there a good way to find that out? | 17:25 |
|
| i guess Documentation and RelNotes | 17:26 |
|
_ikke_
| Indeed | 17:26 |
|
clime
| was trying to find in git log before, thanks | 17:26 |
|
_ikke_
| I happen to have a list (outdated) which lists what features were introdoced when | 17:26 |
|
clime
| cool | 17:27 |
|
| _ikke_: is it public somewhere? | 17:27 |
|
_ikke_
| http://tinyurl.com/git-changes | 17:27 |
| ← pd_09041999 left | 17:28 |
|
clime
| _ikke_: thanks! | 17:28 |
| ← kjartan left | 17:31 |
| ← jcbitter left | 17:35 |
| → kjartan joined | 17:36 |
| → tarkus joined | 17:37 |
| → jcbitter joined | 17:38 |
| ← learningc left | 17:38 |
| → learningc joined | 17:38 |
| ← bket left | 17:43 |
| ← learningc left | 17:45 |
| ← mowcat left | 17:46 |
| → learningc joined | 17:46 |
| ← swift1 left | 17:48 |
| ← theoceaniscool left | 17:52 |
| ← learningc left | 17:52 |
| → learningc joined | 18:10 |
| → Industrial joined | 18:11 |
|
Industrial
| Hi. Say I have a repo with MANY different little projects inside (https://github.com/helm/charts.git). How do I search through the git history (file changes, commit messages, etc) for a subtree of the repo? | 18:12 |
|
| I want to check matches for "password" or "Password" inside the PostgreSQL Helm Chart, because there is currently a bug with it. | 18:13 |
|
| So I'd like to see what happened specificly concerning passwords :-) | 18:13 |
|
| specifically* | 18:13 |
| → mikecmpbll joined | 18:13 |
| → orbyt_ joined | 18:16 |
| ← made2591 left | 18:16 |
| → blackandblue joined | 18:19 |
| → dege joined | 18:19 |
|
clime
| Industrial: git log -S "(Password|password)" --pickaxe-regex . | 18:19 |
|
| Industrial: cd to the subtree you want to search in first | 18:20 |
| ← kapil____ left | 18:22 |
|
Industrial
| clime: Thanks ! :-) | 18:25 |
| → nurdie joined | 18:26 |
| ← syn0 left | 18:27 |
| → nurdie_ joined | 18:29 |
|
clime
| Industrial: you can also do git log --grep="password" --grep="Password" . | 18:29 |
|
| that actually searches in the commit messages. Idk if there is a command that combines both | 18:29 |
|
_ikke_
| or git log --grep=[pP]assword | 18:30 |
|
| " | 18:30 |
| ← nurdie left | 18:30 |
| → gaia joined | 18:31 |
| → nic-hartley joined | 18:32 |
| → bergercookie joined | 18:33 |
|
clime
| Industrial: also -G will probably give you more results then -S, -S only displays changes that affected number of occurrences - i needed to browse man pages | 18:33 |
|
gaia
| hi. i need to undo a few changes from a patch that i created with git add --patch. is there something like"git remove --patch" or so ? | 18:35 |
| ← learningc left | 18:36 |
|
_ikke_
| gaia: git reset --patch | 18:36 |
| → learningc joined | 18:36 |
|
gaia
| ah... testing :) | 18:37 |
| ← ggSo left | 18:40 |
| ← zonixo left | 18:40 |
|
gaia
| _ikke_, thanks for this tip :) That saved me a lot of headache | 18:44 |
| → pd_09041999 joined | 18:44 |
| → TheZ joined | 18:45 |
|
_ikke_
| :) | 18:54 |
| → Goplat joined | 18:54 |
| ← nurdie_ left | 18:56 |
| ← wyre left | 18:59 |
| → mroutis joined | 18:59 |
| → APic joined | 19:03 |
| → TJ- joined | 19:04 |
|
mroutis
| I often use `git log --since=... --no-merges --patch` to get an overview of what happened on a project, however, the project maintainer doesn't "squash & merge" when integrating branches to the main one, I often see commits that don't make sense because they depend on another commit, is there a way to `squash` them when reading them with git log? | 19:05 |
|
osse
| mroutis: maybe you want --first-parent, but I'm not sure how that affects the diff output | 19:06 |
|
| i don't think there's an option to do exactly what you describe | 19:06 |
| ← Achylles left | 19:07 |
| → hseg joined | 19:07 |
|
osse
| mroutis: ah, you can try --first-parent -m *without* --no-merges | 19:08 |
|
| i think you will see the merge commits with a patch that is the entirety of the branch merged in | 19:08 |
|
mroutis
| osse: thanks for the quick response, I'll take a look | 19:08 |
| ← igemnace left | 19:11 |
|
mroutis
| osse: awesome, dude, the `-m` flag did the work! | 19:11 |
| → ferdna joined | 19:11 |
| ← ayjay_t left | 19:12 |
|
osse
| \o/ | 19:12 |
| → ayjay_t joined | 19:12 |
| → anddam joined | 19:12 |
| → wyre joined | 19:14 |
|
anddam
| howdy, I need a bit of git-wisdom. I forked https://github.com/micropython/micropython on my github account to have an repo of mine to push to. I then would like to fork https://github.com/dmazzella/circuitpython/tree/dmazzella-patch-1 | 19:15 |
|
mroutis
| osse: so, what the command is doing is removing commits that are part of a merge by using `--first-parent` and in those cases, by using `-m` it kind of squash the whole thing into the merge commit, right? | 19:15 |
|
anddam
| this is a branch of a repo that has a pending fork on circuitpython, in turn a fork of micropython | 19:15 |
| ← bergercookie left | 19:17 |
|
osse
| mroutis: the -m flags makes git log output one diff per parent for merge commits | 19:17 |
|
| mroutis: the --first-parent "censors" the second on | 19:18 |
|
| one | 19:18 |
|
anddam
| if I try to fork https://github.com/dmazzella on github it warns me that I have already forked micropython/micropython . Now I'm not sure if I should keep the one repo micropython/micropython and add to it the dmazzella/circuitpython branch or I should have two repos, micropython/micropython AND circuitpython/circuitpyhon (or dmazzella/circuitpython) | 19:18 |
|
| wow I confused even myself while writing that… | 19:18 |
|
mroutis
| osse: that's genius, thanks again :) | 19:18 |
| → AtumT joined | 19:20 |
| ← eraserpencil left | 19:20 |
| ← hseg left | 19:20 |
| ← snsapiens left | 19:21 |
| → eraserpencil joined | 19:23 |
|
anddam
| mmm, I did 'pull origin patch-1' while I was on master that is tracking upstream/master, this resulted in an automated merge commit | 19:23 |
|
| how do I delete this last commit? | 19:23 |
| ← chiasmata left | 19:25 |
| ← swalladge left | 19:25 |
|
anddam
| no, actually I can find that on the web. What I want to understand is why that commit was auto-generated, and why issuing :q! at the commit message didn't stop the commit | 19:25 |
| → swalladge joined | 19:26 |
|
anddam
| I see the merge is the default pull action, pull meaning 'fetch+merge' but I still expected to manually perform the commit | 19:26 |
|
| ah --no-commit, this documentation is actually useful. Now I only have to learn to read it *beforehand* | 19:27 |
|
| mm a nice 'git reset --hard HEAD' seems to have done the trick, can anyone confirm that is appropriate ? | 19:30 |
| ← d^sh left | 19:37 |
| → sns joined | 19:38 |
| ← meLon left | 19:38 |
| → d^sh joined | 19:39 |
|
clime
| i basically have this command to get remote branch fetch url: git config remote."$(git config branch."$(git symbolic-ref --short HEAD)".remote)".url | 19:41 |
|
| seems a little bit complex...is there anything shorter? | 19:41 |
|
| it also does not account for origin fallback that git fetch does | 19:42 |
| ← lucasb left | 19:42 |
| → nurdie joined | 19:43 |
| → meLon joined | 19:51 |
|
osse
| anddam: :q! doesn't vim exit with a non-zero exit code | 19:59 |
|
| you can use :cq for that | 20:00 |
| ← tarkus left | 20:02 |
|
anddam
| osse: or I should have deleted the auto-populated first line and let git raise an error for that | 20:03 |
|
| osse: I'm not using vim (anymore) btw | 20:03 |
| ← nurdie left | 20:04 |
| → nurdie joined | 20:04 |
|
anddam
| I was using a minimum set of features, and I did not like its default command shortcuts, so I went for something smaller | 20:04 |
|
| osse: and one bonus is there is no vimL | 20:04 |
| ← learningc left | 20:05 |
| ← basiclaser left | 20:06 |
|
osse
| hey I was just answering why :q! didn't work | 20:07 |
| ← mroutis left | 20:07 |
| ← nurdie left | 20:09 |
|
anddam
| osse: other than exiting with 0 I think the issue is that merge creates a valid commit message | 20:09 |
|
| osse: sorry, I misread your last line | 20:09 |
| ← Neel left | 20:10 |
| ← justanotheruser left | 20:20 |
| → hofmann3900 joined | 20:25 |
| → ezio joined | 20:25 |
| ← tmz left | 20:26 |
| → lurkless joined | 20:30 |
| ← sternmull left | 20:34 |
| ← orbyt_ left | 20:35 |
| ← czart_ left | 20:35 |
| ← blackandblue left | 20:38 |
|
osse
| anddam: Afaik any non-empty message is valid | 20:39 |
| ← sweatsuit left | 20:41 |
| → orbyt_ joined | 20:42 |
| → sweatsuit joined | 20:43 |
| ← wootehfoot left | 20:43 |
| ← Envil left | 20:43 |
| → fstd_ joined | 20:43 |
| → sweatsuit_ joined | 20:44 |
| → nurdie joined | 20:45 |
| ← sweatsuit left | 20:47 |
| ← fstd left | 20:47 |
| fstd_ → fstd | 20:47 |
| ← sweatsuit_ left | 20:49 |
| → sweatsuit joined | 20:49 |
| → Olipro joined | 20:50 |
| ← nurdie left | 20:50 |
| ← eraserpencil left | 20:53 |
| → eraserpencil joined | 20:53 |
| ← orbyt_ left | 20:54 |
| → tmz joined | 20:59 |
| ← ayjay_t left | 21:03 |
| → ayjay_t joined | 21:04 |
| → theoceaniscool joined | 21:05 |
|
nezZario
| I have no idea what one of my devs did here. They did a merge commit, so it appears in the log, ... but then a whole bunch of work from another dev -- in another commit -- is shown as being deleted/removed in their commit... What the heck are they lying to me about? | 21:05 |
|
| they said they were just merging their feature branch in | 21:05 |
| ← clime left | 21:06 |
| ← cbreak left | 21:08 |
| → cbreak joined | 21:09 |
| → justanotheruser joined | 21:09 |
| → rafasc joined | 21:17 |
| → wootehfoot joined | 21:19 |
| ← ayjay_t left | 21:21 |
| → made2591 joined | 21:21 |
| → ayjay_t joined | 21:22 |
| → bket joined | 21:24 |
| → nurdie joined | 21:27 |
| → Puffball joined | 21:27 |
| → goodafternoon joined | 21:30 |
| ← thiago left | 21:30 |
| ← nurdie left | 21:31 |
| ← Industrial left | 21:33 |
| → inkbottle joined | 21:36 |
| ← justanotheruser left | 21:38 |
| → kent\n joined | 21:41 |
| → perrier-jouet joined | 21:43 |
| ← kjartan left | 21:44 |
| ← ixian left | 21:45 |
| → ixian joined | 21:46 |
| → orbyt_ joined | 21:47 |
| → nurdie joined | 21:48 |
| → kjartan joined | 21:49 |
| ← staafl_ left | 21:50 |
| ← nurdie left | 21:52 |
| → gaia_ joined | 21:54 |
| ← gaia left | 21:58 |
| → moei joined | 21:59 |
| ← skered left | 22:00 |
|
j416
| nezZario: sounds like you have a bigger problem than your git repo | 22:03 |
| ← orbyt_ left | 22:07 |
| → nurdie joined | 22:08 |
| → veegee joined | 22:09 |
| → [Brain] joined | 22:11 |
|
nezZario
| Ha. Yes I'm pretty sure | 22:11 |
| ← nurdie left | 22:12 |
| → orbyt_ joined | 22:14 |
|
rafasc
| nezZario: could be accidental. Like mistakes during conflict resolution, etc. | 22:16 |
|
| but if you have the history, you can check who did what. | 22:17 |
|
| unless one of them is forging commits.. But if that's the case, you have way bigger problems. | 22:17 |
| ← lalilulelo left | 22:19 |
|
nezZario
| No the guy just doesn't know how to use git. Is there a way to know if there was a conflict?... I bet he just clicked 'mine'. He is using some kind of UI. I mean he brought it to my attention that he was worried he did something wrong. I'm trying to figure out what he could've done. | 22:21 |
| ← orbyt_ left | 22:21 |
|
nezZario
| A way to find out - assuming nothing malicious or any intentional tampering | 22:21 |
|
| I don't see it in git log | 22:22 |
|
j416
| nezZario: get someone on your team who does know to help out? | 22:24 |
| ← zulutango left | 22:25 |
|
j416
| if you have no one on your team who knows git well, give them a couple of days to learn | 22:25 |
|
| !book | 22:25 |
|
gitinfo
| There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !gcs !designers !gitt !vcbe and !parable | 22:25 |
| → justanotheruser joined | 22:25 |
| → zulutango joined | 22:27 |
|
rafasc
| nezZario: git show <merge> --cc; can show some information on how the merge was resolved, or you can just checkout both parents and merge it yourself again. | 22:30 |
|
| git checkout --detach <merge>^1; git merge <merge>^2; you can use the detached head to avoid creating unnecessary branches. | 22:31 |
| ← justanotheruser left | 22:32 |
| → gxt joined | 22:36 |
| → dre_ joined | 22:36 |
| → ggSo joined | 22:36 |
| → zonixo joined | 22:36 |
| ← gaia_ left | 22:41 |
| ← made2591 left | 22:42 |
| ← theoceaniscool left | 22:43 |
| → nowhereman joined | 22:44 |
| ← mikecmpbll left | 22:44 |
| ← Phylock left | 22:45 |
| → nurdie joined | 22:49 |
| ← dege left | 22:53 |
| ← nurdie left | 22:54 |
|
energizer
| I have two stashed items which are incompatible but I want to merge them and apply them as a single commit on top of the current master. What can I do? | 22:57 |
|
rafasc
| stash apply one, stash apply two. ? | 22:58 |
| ← freeman42x left | 22:58 |
| ← zonixo left | 23:00 |
|
energizer
| error: Your local changes to the following files would be overwritten by merge | 23:00 |
| ← ggSo left | 23:00 |
| ← finalbeta left | 23:04 |
|
energizer
| uh oh i lost them | 23:06 |
|
rafasc
| stash apply doesn't remove the stash. | 23:09 |
| ← plexigras left | 23:15 |
| → orbyt_ joined | 23:18 |
| ← dre_ left | 23:19 |
| → igemnace joined | 23:19 |
| ← TJ- left | 23:19 |
| → gambeta joined | 23:21 |
|
energizer
| got it now | 23:23 |
|
| thanks | 23:23 |
| → nurdie joined | 23:26 |
| → mroutis joined | 23:26 |
| → victorqueiroz joined | 23:26 |
| ← mroutis left | 23:30 |
| ← nurdie left | 23:30 |
| ← silverballz left | 23:32 |
| ← ferdna left | 23:36 |
| → jbowen joined | 23:46 |
| → nurdie joined | 23:47 |
| ← wootehfoot left | 23:47 |
| ← cd left | 23:49 |
| ← causasui left | 23:49 |
| → cd joined | 23:50 |
| → silverballz joined | 23:50 |
| → SuperL4g joined | 23:50 |
| ← nurdie left | 23:51 |
| d1b_ → d1b | 23:52 |
| ← jbowen left | 23:52 |
| → jbowen joined | 23:52 |
| ← SuperLag left | 23:53 |
| → SuperLag joined | 23:55 |
| ← SuperL4g left | 23:56 |
| → cruzo66342 joined | 23:59 |
| ← gambeta left | 23:59 |