IRCloggy #git 2024-01-08

Logs Search ←Prev date Next date→ Channels Documentation

Provider of IRC logs since 2005.
WARNING: As Freenode became unjoinable and lost all warnings in topics, we cannot log channels on Freenode anymore.

2024-01-08

pasky left00:00
humanface left00:00
jklfds joined00:03
pasky joined00:05
oriba left00:07
FinnElija left00:08
sahil_ left00:16
erectus left00:31
owuser left00:41
stagas left00:48
stagas joined00:49
m0viefreak left00:51
jmd left01:00
yuljk left01:01
cbreak left01:05
irc_user joined01:05
qqq left01:05
rgrinberg left01:08
jklfds left01:08
cbreak joined01:10
rgrinberg joined01:11
yuljk joined01:16
jklfds joined01:19
Lord_of_Life left01:23
Lord_of_Life joined01:24
rgrinberg left01:29
fflam left01:31
fflam joined01:32
xx left01:33
stuv left01:40
miigotu left01:45
miigotu joined01:46
meritamen joined01:52
navi left01:59
lucasta left02:04
miigotu left02:05
Gary_Sinise joined02:23
SuperLag left02:24
thiago left02:24
SuperLag joined02:24
jklfds left02:25
igemnace left02:26
miigotu joined02:26
meritamen left02:36
jklfds joined02:36
schne1der joined02:37
jklfds left02:41
cbreak left02:42
igemnace joined02:44
jklfds joined02:47
jklfds left02:54
cappy joined02:54
cbreak joined02:57
meritamen joined02:57
lunatiq left03:04
JanC_ joined03:05
hbautista joined03:05
JanCGuest776403:05
Guest7764 left03:05
JanC_JanC03:05
jklfds joined03:06
lunatiq joined03:07
lunatiq left03:07
lunatiq joined03:07
stagas left03:08
stagas joined03:09
jklfds left03:11
tirnanog left03:11
meritamen left03:12
jklfds joined03:12
irc_user left03:13
rgrinberg joined03:17
jklfds left03:17
meritamen joined03:19
bin101 left03:27
jklfds joined03:30
schne1der left03:30
gsi_ joined03:31
bin101 joined03:33
gsi left03:34
jklfds left03:37
jklfds joined03:46
jklfds left03:50
meritamen left03:59
fdan joined04:00
rgrinberg left04:01
mrpops2ko left04:02
lester29 left04:04
jklfds joined04:05
cbreak left04:06
bitoff_ left04:08
LuckyMan joined04:10
mrpops2ko joined04:12
Rashad joined04:12
jklfds left04:14
jklfds joined04:17
bloody left04:18
reset left04:18
khrbtxyz left04:19
cbreak joined04:22
jklfds left04:22
RiFo joined04:27
RiFo left04:27
BrianBlaze left04:27
matt0x6f left04:29
zeka__ left04:29
zeka_ joined04:29
masoudd_ left04:30
jklfds joined04:30
matt0x6f joined04:30
epony left04:30
fdan left04:33
bitoff_ joined04:34
cpackham left04:35
_qw left04:37
RiFo joined04:38
eqw left04:38
lester29 joined04:38
jklfds left04:42
epony joined04:49
rgrinberg joined04:53
jklfds joined04:54
khrbtxyz joined04:58
gryffus left04:59
praise_the_sun left05:00
jklfds left05:00
ZMarkGC left05:01
gryffus joined05:02
GNUmoon2 left05:05
GNUmoon2 joined05:05
fdan joined05:07
FinnElija joined05:10
FH_thecat left05:11
cbreak left05:15
jklfds joined05:15
zeka_ left05:15
zeka_ joined05:15
ZMarkGC joined05:19
jklfds left05:25
jklfds joined05:33
cbreak joined05:33
jklfds left05:38
praise_the_sun joined05:39
Rashad left05:42
jklfds joined05:42
fdan Hi there, i have a question05:44
we had a customer who had the repo and just a member of our team had an access to their repo05:44
our colleague create another repo ( not sure why he didnt fork the repo )05:44
whenever there is changes he used to add the changes to the repo he created05:45
whenever i tried to do something like this, i lost the commit information05:45
could someone tell me how to have the changes from repo1 to repo205:46
bookworm git format patch / git show+ git apply, add the remote and cherry pick.... bunch of ways05:47
ikke fdan: git format-patch + git am05:47
fdan bookworm how do i add a remote05:48
bookworm git remote add05:48
what a surprise05:48
fdan yes but the remote should be repo1 or repo205:48
bookworm yes and?05:48
gsish is any magic even required? is it not just a simple matter of fetch and push with different remotes?05:49
fdan i cloned the repo2, when i did git remote -v (it shows the origin in remote for fetch and push )05:49
gsish - i have never done that05:49
ikke gsish: only if the repos are related05:49
ie, they were the same repo but pushed to different projects05:49
gsish was to understand that from the above description05:49
bookworm fdan: sure, now add a second remote that points to the other05:49
but as ikke alluded to, you probably only want tp do so if the histories are actually related05:50
fdan git remote add [email@hidden.address]05:50
says usage: git remote add [<options>] <name> <url>05:50
ikke fdan: you need to give it a name05:50
bookworm yeah so give ot a name05:50
fdan sure05:51
that works and what is next05:52
bookworm fetch it, look at what you wanna do, do it05:52
jklfds left05:52
fdan just git fetch?05:52
bookworm no, tell it which remote or use --all05:52
ikke git fetch <name-of-remote>05:52
fdan alright and then?05:53
bookworm do what needs doing05:53
fdan how i can add the new changes in the newremote to my branch05:53
bookworm I don't see your tree05:53
gsish follow your example above and do: some-command some-args05:53
bookworm are the histories related?05:54
or do you now see two separate graphs?05:54
epony left05:54
rosco joined05:54
bookworm if the first, well, merge will do, else cherry-pick05:54
fdan bookworm: how do i see if the histories are related?05:55
bookworm look at it05:55
fdan when i do git merge feature/mon05:56
BrianBlaze joined05:56
fdan it says merge: feature/mon - not something we can merge05:56
epony joined05:56
bookworm split then05:56
TheCaptain4 joined05:56
bookworm unless you borked the name05:57
so use cherry-pick05:57
fdan i tried doing git pull --rebase repo1remote feature/mon05:57
says there is merge conflict05:57
bookworm why would you pull repo1 now?05:57
pull is fetch && merge05:58
fdan thats what i wanted right.05:58
repo1 - customer git repo05:58
repo2 - my repo05:58
bookworm which side are you trying to get where?05:58
fdan i created a test branch in repo205:58
TheCaptain left05:58
TheCaptain4TheCaptain05:58
fdan and i want to get some changes from some branch in repo1 to repo205:58
bookworm so checkout whatever your branch is from remote 2 and then use cherry-pick to get changes from remote1 then05:59
or make sure that the histories are shared so that it's easier and use merge05:59
hamburgler left05:59
Ox7C5_ joined06:00
fdan how do i make sure the histories are shared06:00
bookworm you can force git to accept an unrelated graph in a merge, look at the manpage for merge I don't use it like ever so don't remember from the top of my head06:01
jklfds joined06:02
liminal joined06:02
bookworm but assuming your colleague wasn't a masochist, they probably made it easy on themselves so I'm not sure your repos are really separate.06:03
clime joined06:03
kyshoc left06:05
kyshoc joined06:06
kyshoc left06:06
kyshoc joined06:06
jklfds left06:07
Rashad joined06:08
rosco left06:09
jklfds joined06:10
hbautista left06:10
mven9 left06:11
rosco joined06:14
cbreak left06:15
jklfds left06:16
jklfds joined06:18
cbreak joined06:22
Rashad left06:24
jklfds left06:25
mven9 joined06:27
lunatiq left06:29
FH_thecat joined06:29
cappy left06:35
Rashad joined06:35
hamburgler joined06:35
TheCaptain6 joined06:37
TheCaptain left06:39
TheCaptain6TheCaptain06:39
jklfds joined06:40
mingdao left06:43
mingdao joined06:45
bindu left06:45
jklfds left06:46
bindu joined06:46
jklfds joined06:49
xx joined06:50
Chaser joined06:50
pr100 joined06:52
rgrinberg left06:53
jklfds left06:54
pr100 How can add everything from one repo in a subdirectory of another keeping all the branches? The examples I can find deal with merging into a single branch (e.g. main or master).06:56
bookworm do you want to keep the repo split?06:59
grawity that's the only way things work in git; there are practically no "all branch" operations06:59
bookworm subtrees come to mind06:59
rainystorm joined06:59
bookworm depends on what you are actually trying to do06:59
grawity tbh I started thinking about whether it would be feasible to mass-merge all branches into their correpsonding branches and my head is already spinning06:59
jklfds joined07:00
bindu left07:05
bindu joined07:05
jklfds left07:05
pr100 I don't care about keeping the old repo (well - I will keep it for reference, but the idea is that all new work happens in the new combined repo)07:06
fdan left07:08
j416 pr100: sounds like filter-branch07:08
pr100 I can manually create a new branch in the target repo for every branch in the "subrepo" and merge in manually. I guess I can script that07:08
j416 but filter-branch will of course destroy the original history; I'd probably go with merge if I could07:09
or a simple "move to subdir" commit07:09
depending on your project07:09
rgrinberg joined07:10
_qw joined07:12
LuckyMan left07:13
pr100 Actually - it's only a few branches that I really care about - I guess it's not too onerous to just go through and do each one: create new branch in target repo, merge in from corresponding branch in source repo. The only branch that'll be named the same atm is almost certainly master.07:13
j416 makes sense07:14
unless those relate to each other in some way, in which case it might make more sense to merge one and then let the others stem from that07:14
as in, if you usually merge one to the other07:14
pr100 OK, ty07:22
git-filter-repo does a similar thing if you just want to split out into a new repo, but it's the stitching together...07:24
skapata left07:26
jklfds joined07:28
meritamen joined07:32
hamburgler left07:38
jklfds left07:38
hamburgler joined07:40
schne1der joined07:41
jklfds joined07:48
R2robot left07:52
jmd joined07:53
jklfds left07:55
rainystorm left07:55
jklfds joined08:00
jklfds left08:05
Ox7C5 left08:06
Ox7C5 joined08:06
Ox7C5_ left08:06
Ox7C5_ joined08:06
cbreak left08:06
fling left08:09
fling joined08:12
cykelero joined08:15
cykelero left08:15
jklfds joined08:20
cbreak joined08:23
zestyluna joined08:36
coot joined08:40
Crispy left08:44
zestyluna left08:47
sentriz left08:51
gandhibobandhi joined08:58
xzed joined08:59
bindu left09:04
bindu joined09:06
R2robot joined09:07
MGF_Fabio joined09:10
fling left09:20
sentriz joined09:20
rainystorm joined09:21
fling joined09:21
elastic_dog left09:23
rgrinberg left09:26
Rashad left09:27
xzed left09:27
GNUmoon2 left09:34
GNUmoon2 joined09:34
elastic_dog joined09:35
gandhibobandhi left09:37
kurahaupo_ joined09:40
KnoP joined09:42
FinnElija left09:46
kurahaupo_ left09:52
danse-nr3 joined09:59
FinnElija joined09:59
cbreak left10:00
Gary_Sinise left10:01
gandhibobandhi joined10:01
bindu left10:03
bindu joined10:03
cbreak joined10:07
rosco left10:10
Ox7C5_ left10:17
Ox7C5_ joined10:17
igemnace left10:24
kurahaupo_ joined10:27
kurahaupo_kurahaupo__10:28
kurahaupo__kurahaupo10:28
thiago joined10:32
igemnace joined10:41
pvxe left10:41
pvxe joined10:42
kurahaupoCurriedHippo10:42
CurriedHippokurahaupo10:42
kurahaupoKangaroo10:46
Kangarookurahaupo10:47
de-facto left10:51
de-facto joined10:52
meritamen left10:57
f451 joined11:01
meritamen joined11:02
bindu left11:02
jab416171 left11:02
bindu joined11:03
jab416171 joined11:08
bindu left11:09
bindu joined11:10
bindu left11:10
bindu joined11:10
keypusher left11:19
rsx joined11:19
keypusher joined11:19
xdminsy joined11:24
cousteau joined11:24
cousteau Hi11:24
Can I have a tutorial for Windows, Git, and symbolic links? I'm having trouble figuring this out11:25
dsimic left11:26
ikke cousteau: what do you want to know? As windows does not support symbolic links (as non-admin user), git stores symbolic links as text files on windows11:27
dsimic joined11:28
cousteau (context: by default, both Git and MSYS for Windows replace symbolic links with hard copies. I just installed Git on a new Win 11 machine and enabled the option to use actual symlinks, but now I need to enable this in MSYS and also my Windows user, I think)11:28
I have admin rights on this computer so I could enable symlinks for my user account. I also configured the %MSYS% env var but it seems that the git bash console overrides this setting for some reason11:30
Rashad joined11:33
fdan joined11:38
fdan hi, when i did git pull --rebase <remotename> feature/mon and then did a git commit11:38
it asked me to amend the commits i believe, so for some reason the timestamp and date is reported wrongly in the logs11:39
how do i fix it11:39
cousteau Alternatively... MSYS has an option to handle .lnk files intrinsically as if they were symbolic links. Can Git do that as well? Last I checked it couldn't; it would be nice if it could.11:39
j416 fdan: the timestamps are correct; there are two timestamps for a commit, the author time the commit time. Your rebase updated only the latter.11:43
q3lont joined11:43
fdan j416 when i do the git log - i dont see the correct log with right timestamp11:43
osse try git log --pretty=fuller11:44
j416 fdan: if you want to update the former as well, an easy way is to amend the commit again and add the flag --reset-author11:44
fdan: the log is correct.11:44
fdan osse thanks11:44
its right11:44
j416 the author time doesn't change throughout the lifetime of a commit unless you explicitly specify that it should11:45
the commit time changes every time a commit is re-created (by for instance rebase, cherry-pick)11:45
rumpelsMongol joined11:47
theoceaniscool joined11:53
omnigoat left11:53
omnigoat joined11:54
danse-nr3 left11:55
Ox7C5_ left11:57
fdan left12:01
nivag_2c joined12:01
nivag_2c left12:06
cousteau OK, so for some reason %MSYS%=winsymlinks:nativestrict doesn't propagate to git bash, where $MSYS defaults to disable_pcon12:06
jast how are you trying to set that?12:07
kurahaupo cousteau: do you set it in .bashrc or similar?12:07
cousteau Windows environment variables12:07
jast huh, weird12:07
cousteau kurahaupo: that's plan B12:07
kurahaupo I mean, it might be setting the wrong value in .bashrc, overriding the windows envvar12:08
jast or possibly the launcher overrides it12:08
cousteau Oh, gotcha. I already checked; there's no .bashrc file (yet)12:12
Has to be the launcher. Gonna ask around in #msys12:12
Maybe #mingw ?12:13
Oh, they're in OFTC12:13
YuGiOhJCJ left12:15
rumpelsMongol left12:18
cousteau So... Somebody had not clicked OK after editing the environment variables m(12:20
OK, now all that's missing is making Windows let me do symlinks12:22
Rashad left12:24
nivag joined12:24
cousteau googled "windows allow symbolic links" and got a link to the documentation of Perforce. Finally, a proper SCM! /s12:24
nivag left12:29
q3lont left12:30
Ox7C5_ joined12:35
kucha joined12:40
nivag joined12:43
nivag left12:47
navi joined12:48
sentriz left12:48
a51 joined12:50
danse-nr3 joined12:50
reset joined12:55
sentriz joined12:57
KnoP left12:57
jfsimon1981_c joined12:58
fling left12:59
jfsimon left12:59
mjt0k win has mklink, for a very long time, fwiw12:59
gazalam left13:00
mane joined13:00
nivag joined13:05
danse-nr3 left13:09
m257 joined13:10
m257 left13:11
fling joined13:13
Arsen left13:15
dmvrtx left13:15
weedmic joined13:16
dmvrtx joined13:17
Arsen joined13:17
m257 joined13:17
nivag left13:20
danse-nr3 joined13:21
TheCaptain1 joined13:22
Ox7C5_ left13:23
TheCaptain left13:24
TheCaptain1TheCaptain13:24
cousteau mjt0k: yeah, I'm trying to figure out how to enable user permissions for that13:30
TL;DR Perforce lied13:30
weedmic left13:32
de-facto left13:35
nivag joined13:36
de-facto joined13:36
daemondaemon^13:37
pr100 left13:38
cousteau OK, I give up. I'll use the silly and incompatible default behavior and be done with it.13:38
Not git's fault Windows is weird, anyway.13:39
kucha hi. does the <https://git-send-email.io>-style workflow assume a possibility to retain a local copy of sent emails? (given i have no control of my smtp server)13:40
nivag left13:41
praise_the_sun left13:41
m257 left13:42
osse kucha: sort of. instead of doing git send-email HEAD^ you can do git format-patch HEAD^ which will create a file, and pass that file to git send-email13:42
ch and/or see the git-imap-send man page for suggestions13:42
m257 joined13:42
osse I suppose you can also --cc yourself13:43
Rashad joined13:45
praise_the_sun joined13:47
elastic_dog left13:49
nivag joined13:54
TheCaptain6 joined13:56
nivag left13:57
TheCaptain left13:58
TheCaptain6TheCaptain13:58
Kroko joined13:59
praise_the_sun left13:59
Kroko left13:59
praise_the_sun joined14:01
elastic_dog joined14:01
miigotu left14:04
miigotu joined14:06
TheCaptain3 joined14:07
gloomy_desktop left14:09
TheCaptain left14:09
TheCaptain3TheCaptain14:09
bloody joined14:27
Aminda left14:28
TheCaptain2 joined14:29
jklfds left14:29
m257 left14:30
Aminda joined14:30
TheCaptain left14:32
TheCaptain2TheCaptain14:32
Aminda left14:33
Aminda joined14:34
JanC left14:37
JanC joined14:39
jaythepirate2 joined14:41
praise_the_sun left14:42
jaythepirate left14:43
jaythepirate2 left14:46
jaythepirate joined14:50
wyre hi guys, my git client gets stuck when I do "git clone http://..."14:54
it should ask for my credentials ... but it's not asking anything14:54
grawity export GIT_CURL_VERBOSE=114:54
praise_the_sun joined14:55
praise_the_sun left14:56
praise_the_sun joined14:56
praise_the_sun63 joined14:57
praise_the_sun63 left14:57
praise_the_sun28 joined14:58
praise_the_sun28 left14:59
praise_the_sun63 joined14:59
praise_the_sun63 left14:59
liefer396 joined15:00
praise_the_sun left15:01
lunatiq joined15:01
kurahaupo left15:14
mane left15:15
jklfds joined15:15
meritamen left15:17
skapata joined15:17
danse-nr3 left15:20
danse-nr3 joined15:21
meritamen joined15:25
gh34 joined15:25
praise_the_sun joined15:31
mane joined15:34
mane left15:40
mane joined15:41
thiago left15:41
mane left15:43
thiago joined15:43
fstd_ joined15:43
fstd left15:43
fstd_fstd15:43
esc left15:45
rgrinberg joined15:45
skapata left15:46
skapata joined15:47
hbautista joined15:47
meritamen left15:48
mane joined15:49
mane left15:50
masoudd joined15:57
a51 left15:57
z1haze joined15:59
danse-nr3 left16:00
humanface joined16:02
m257 joined16:09
esc joined16:11
foul_owl left16:16
m257 left16:17
stuv joined16:18
m257 joined16:25
fflam left16:26
a51 joined16:27
fflam joined16:28
foul_owl joined16:31
danse-nr3 joined16:33
danse-nr3 left16:36
danse-nr3 joined16:37
rgrinberg left16:38
m257 left16:43
m257 joined16:44
MGF_Fabio left16:44
mven9 left16:54
mven9 joined16:55
cousteau left16:57
cousteau joined16:57
cousteau left16:58
cousteau joined16:58
a51 left16:59
hbautista left17:00
z1haze left17:05
m257 left17:05
m257 joined17:06
rgrinberg joined17:07
Night0wl3 left17:08
no_gravity joined17:10
no_gravity Is there a way to find the last comment I put into my codebase?17:10
gandhibobandhi left17:10
kurahaupo joined17:11
j416 no_gravity: do you know what you wrote?17:13
p14nd4 no_gravity: do you need a one-liner, or you just want to find it manually?17:13
j416 no_gravity: or what it looks like?17:13
no_gravity j416: No. I rarely write comments. I would like to find out when I wrote the last one.17:13
j416 no_gravity: git log -S 'your comment' # might be of use17:13
no_gravity p14nd4: One-liner would be the coolest of course, but I can also do it manually.17:14
j416 no_gravity: if you have a known pattern for a comment, you could use that, like a '#' or '//' or what have you17:14
no_gravity j416: Yeah, I'm trying -S '// ' at the moment. Not yet sure if that works.17:14
j416 no_gravity: works here17:14
no_gravity Yeah. It's a bit manual work, but it works.17:15
So for this project, which is one of my bigger ones, I wrote the last comment in May 2023.17:16
j416 why manual?17:16
p14nd4 git log --all --branches --pretty='format:%C(auto)%h %d %C(green)%an %Creset%s %C(cyan)(%ci)%Creset' --abbrev-commit | grep <your name> | head -n 117:16
no_gravity j416: It finds all kinds of unrelated stuff like removed comments for example.17:17
p14nd4 there are certainly more elegant ways, and that might break in some cases with different branches or rebases17:17
j416 no_gravity: ah. you might be able to give it a filter.17:17
no_gravity p14nd4: What does the --all do?17:18
p14nd4 Pretend as if all the refs in refs/, along with HEAD, are listed on the command line as <commit>.17:18
no_gravity p14nd4: That is chinese backward to me :)17:19
j416 hm maybe not17:19
p14nd4: he's looking for the last commit that adds a comment17:20
p14nd4 no_gravity: tbh, i'm not 100% sure, but i've thrown it in to be thorough and grab more than just your current branch, or locally tracked branches, i think17:20
oh, i thought he just wanted his last commit message17:20
no_gravity The master branch is enough for me.17:21
p14nd4 okay, then you can skip --all and --branches17:21
j416 p14nd4: git log -1 --author=name17:21
p14nd4: (side note)17:21
no_gravity Ok, thanks! Time for dinner :)17:23
no_gravity left17:23
j416 can't find a way to filter such that git log -S only looks for added lines; maybe it's possible, maybe not17:23
and he left ¯\_(ツ)_/¯17:23
quesker what does it mean to block a PR? I am supposed to make a github action that runs test and lint on PR and block the PR if either one fails17:25
Betal joined17:26
j416 quesker: that's not really a git question, but a github question17:27
quesker: if I were to guess, it means something that prevents that PR from being merged17:27
quesker yeah what command is that, that is my question I guess17:28
z1haze joined17:28
j416 that's unrelated to git17:28
quesker oh ok17:28
j416 git has no such functionality17:28
quesker ah ok I never do any pull request stuff just commit or pull or push17:29
a precommit hook is a git thing right? it seems to me that would be a better way to do this anyway17:33
but I have never used one17:33
opal left17:34
rewt precommit hook would be defined locally, so everyone working on the repo would have to set it up for themselves17:34
quesker oh ok17:34
opal joined17:34
danse-nr3 left17:39
m257 left17:40
m257 joined17:41
a51 joined17:41
Night0wl3 joined17:43
Rashad left17:46
elastic_dog left17:54
undeadscholar joined17:55
f451 left17:57
f451 joined17:57
eqw joined17:57
n1kx joined18:02
m257 left18:04
qqq joined18:04
m257 joined18:05
masoudd_ joined18:05
elastic_dog joined18:06
chymera joined18:06
masoudd left18:08
kus left18:16
p14nd4 when i rebase something, is there a way to have it also automatically update any branches off of those rebased commits to point to the rebased commits? e.g., a--b--c--d (mybranch), but there's also b--x--y--z (otherbranch); i rebase mybranch so it's a'--b'--c'--d', and at the same time i want otherbranch to get updated to b'--x'--y'--z'18:17
lllh left18:19
llh joined18:20
igemnace left18:21
daemon^daemon18:22
nedbat p14nd4: --update-refs does some of that, not sure if it does all of it.18:22
praise_the_sun left18:24
praise_the_sun joined18:24
gryffus left18:25
gryffus joined18:25
stuv left18:30
theoceaniscool left18:34
igemnace joined18:38
rsx left18:40
opal left18:44
opal joined18:44
gryffus left18:46
gryffus joined18:47
krushia joined18:48
Chaser left18:49
gryffus left18:55
undeadscholar left18:56
Gary_Sinise joined18:56
sam113101 left19:01
sam113101 joined19:02
foul_owl left19:05
OnlineCop joined19:14
Szilva left19:17
Szilva joined19:19
foul_owl joined19:19
OnlineCop I have created a git repo under ~/bash_files/ and [hard-]linked several of my ~/.bashrc and ~/.bash_* files into it. When I switch between branches, the hard link is not preserved, so the changes are not reflected back into my home directory. Is this possible (like through a git hook or some `git checkout` flag) so the contents of the file are updated, but the inode is not?19:21
p14nd4 nedbat: indeed, that looks like a very good candidate. thanks!19:22
m257 left19:23
miigotu left19:25
miigotu joined19:26
cpackham joined19:30
Gary_Sinise left19:31
weaksauc_ OnlineCop would a soft link work here since it's basically pointing to a path instead of a inode19:32
i don't recall if bash disallows this19:32
OnlineCop Would a soft link be able to save the file contents themselves?19:32
As long as I can see that I changed "line 54 of file X", I'm fine storing soft links.19:33
weaksauc_ oh i think the typical way to do this is the other way around19:33
have a folder with all your stuff as a repo and then hard/soft link the other way19:34
PantelicGR joined19:34
miigotu left19:41
miigotu joined19:41
j416 OnlineCop: use a symlink instead19:43
OnlineCop: keep the file in the repo, put the link in ~/19:43
meh, could have just read the backlog before I typed something >.>19:44
but, there's a second opinion at least fwiw.19:44
thuna` joined19:49
JordiGH joined19:49
JordiGH Is there a quick way to checkout a commit's singular child, when it only has one?19:50
ikke There is no direct way to refer to children of a commit19:50
even if it's just one19:51
JordiGH So how do you move up and down a stack?19:52
rainystorm left19:52
JordiGH I gotta manually remember where I was?19:52
ikke JordiGH: the reflog keeps track of where you were19:52
anddam JordiGH: does "where I was" mean HEAD history?19:53
i.e. are you "moving" by checking out?19:53
JordiGH anddam: I've got a stack of commits, I wanna move up and down this stack to check how my wdir is at each commit.19:54
'Cause y'know, I'm weird like that, trying to make sure every commit is buildable.19:54
anddam mm sounds like a work for bisect19:54
JordiGH Sounds like work to make bisect work.19:54
j416 JordiGH: move down, then move back to your branch head19:55
JordiGH If you've got intermediate nonsense commits, bisect doesn't work as well.19:55
osse JordiGH: Have git log running in a second terminal19:55
JordiGH j416: So annoying.19:55
j416 JordiGH: why?19:55
JordiGH j416: Because I wish I could just do "git previous", "git next".19:55
Maybe I can write some convoluted alias that parses the reflog in a shell script19:55
j416 but why do you _need_ both?19:55
JordiGH Because I make mistakes and I want to go up and down as I'm working to see where my mistake might have been.19:56
selckin use relative to your branch, master^ master^^ master^^^19:56
anddam can you approach it differently? start from the leaf commit and use a previous counter?19:56
j416 for a tool, you'd probably be better off with the log, not the reflog. I.e. keep the list of commits and move along that.19:56
anddam selckin: what's the syntax with explicit count? master^3 or master~3 ?19:56
JordiGH Yeah, git sucks, so I can work around the suckage. Fine, so what I wanna do can't be done. God I hate git so much. Thanks everyone.19:57
j416 anddam: man gitrevisions19:57
gitinfo anddam: the gitrevisions manpage is available at https://gitirc.eu/gitrevisions.html19:57
j416 anddam: master~3 == master^^^19:57
anddam: master^3 means third parent19:57
anddam j416: yep, already ran that in terminal :-)19:57
JordiGH gitrevision is awful, have you guys even heard of hg revsets?19:57
j416 JordiGH: what do you mean by that?19:57
JordiGH gitrevisions is like its poor , starved cousin.19:57
j416 JordiGH: it's a man page19:58
JordiGH man hg revisions19:58
selckin JordiGH: have you heared of jj19:58
JordiGH Yeah, git manpages are notoriously and famously unreadable.19:58
selckin: I have, might wanna use that instead of this piece of git dvcs.19:58
j416 JordiGH: that depends on where you come from19:58
JordiGH: I haven't had that problem19:58
user03 joined19:59
user03 left19:59
user03 joined19:59
user03gchound19:59
m0viefreak joined20:00
JordiGH There's a nice line from The Beautiful People that comes to mind, right after "you can't see the forest for the trees".20:00
b0nn JordiGH: you can move up and down a commit stack - but you need an alias to do it20:01
https://stackoverflow.com/questions/16062358/referring-to-the-previous-next-commit-in-git20:01
this is "next" git checkout `git log --reverse --ancestry-path HEAD..master | head -n 1 | cut -d \ -f 2`20:02
j416 it's not that easy20:02
praise_the_sun left20:03
b0nn last = log -1 HEAD20:03
oh, sorry that's the alias I have for the most recent commit20:03
prev = checkout HEAD^120:04
I don't use it very much, but I saw someone give a talk once, and they used these aliases to move through their tree, with each commit being a slide in their talk :)20:05
JordiGH b0nn: Ah, thanks, I figured there was a shell script you could write.20:05
Well, just a single pipeline here.20:05
b0nn Honestly, though git's not hg, and hg isn't git, so complaining that one or the other doesn't have the same feature set is a bit... tired20:06
JordiGH Git sucks all on its own. I want to do certain things with it and it makes them difficult or impossible.20:06
Moving up and down the stack isn't some bizarro thing that nobody should ever do and if you do it you're wrong.20:07
b0nn then read the code and make it so :)20:07
j416 JordiGH: you're free to not use it20:07
b0nn or argue for days on IRC - whichever is a better use of your time20:07
j416 b0nn does have a point.20:08
fling_ joined20:08
fling left20:10
JordiGH j416: Who the heck is free to not use git? They even make graphic artists use git when they work on video games.20:10
kus joined20:11
tirnanog joined20:11
JordiGH git is more stnadard than ASCII, HTML, or TCP/IP (actually, fine I don't know how anyone would live without TCP/IP these days)20:11
cousteau left20:12
cousteau joined20:12
b0nn Bring back token ring!20:12
rewt ipx/spx 4ever!20:12
osse find child: git log --format='%H %P' | awk '$2 == hash { print $1 }20:13
'20:13
yaay20:13
p14nd4 UDP is all the rage now20:13
cousteau left20:13
cousteau joined20:14
j416 osse: catch-2220:14
zeka_ left20:15
zeka_ joined20:16
fling_fling20:16
p14nd4 HTTP/3 (nee QUIC), wireguard... and, uh ... this hot new protocol called DNS? :)20:16
OnlineCop left20:16
jklfds left20:16
JordiGH osse: I guess you need `git log --all` there?20:17
Spawns_Carpeting left20:18
Guest95 joined20:20
kjartan_ joined20:21
Guest95 hi20:21
Guest95 left20:22
Spawns_Carpeting joined20:23
cousteau_ joined20:24
rgrinberg left20:25
cousteau left20:28
jklfds joined20:29
cousteau_ left20:29
Tweebuffelsmetee joined20:34
cousteau joined20:37
chair1 joined20:37
cousteau left20:38
jklfds left20:39
JordiGH b0nn: I think it would help some things to add a revision number to git commits. At the very least, it would drastically reduce the search space for a hypothetical `git next` command.20:39
MGF_Fabio joined20:39
JordiGH But I can't be the first idiot to want to try to convince Junio to add revision numbers, so I wonder why it hasn't happened before. Junio is pretty stubborn about some things.20:39
irrgit_ left20:40
irrgit_ joined20:40
JordiGH To be clear, a revision number would be an extra append-only blob that just sequentially maps numbers to new commit hashes as they are seen. It would probably not be exposed anywhere except for .git/ spelunkers.20:40
raffaele__ left20:40
chair1 hello. I currently work in only one branch at a time. a branch corresponds to one feature. I often add unrelated features/refactors in my single work branch. should I man up and start working with several branches for individual changes and merge accordingly?20:41
JordiGH I know Atlassian at one time wanted revision numbers in git too. I wonder why Atlassian failed to convince Junio.20:41
osse JordiGH: Yes, if you're unsure where the child might be20:41
raffaele__ joined20:41
j416 chair1: not necessarily20:43
kucha left20:43
cabazon93 joined20:45
j416 chair1: when I work on my own projects, I do use branches but I like to keep history linear, so I don't merge back and forth just for the sake of it20:45
chair1 I heard that when you add too much unrelated refactors and features in one branch, it makes reverting and bisect difficult20:45
j416 it sounds like you mean one _commit_20:46
Tweebuffelsmetee left20:46
chair1 oh. if I keep every change in separate commits, then no problem? I know how to cherry-pick (select thunks I mean)20:46
j416 keeping commits logical and scoped such that they do one thing at a time makes sense in that regard, it'll make the things you mention easier20:46
a benefit of having merge commits that join branches is that you can easily find the state that was before that branch was merged in20:48
for example, we (at dayjob) like to have one merge commit per production deploy, so that we can easily see exactly what went out in that deploy20:49
jklfds joined20:50
j416 you can find both extremes20:50
there are projects that use merging quite extensively (the git project itself, for example)20:51
gchound left20:51
JordiGH Hm. Hunks are parts of a commit, thunks are delayed computations in lazy languages like Haskell, chunks are parts of a video file.20:51
hunk/thunk/chunk20:51
j416 and there are projects that try hard to keep history linear without any merges (the Go project, for example)20:51
JordiGH Don't think I've heard people call parts of a diff "thunks" before.20:51
jklfds left20:54
chair1 yeah I meant hunks hehe20:56
mjt0k left20:56
chair1 thanks for the insights20:56
rgrinberg joined20:56
jklfds joined20:59
masoudd__ joined21:02
masoudd_ left21:05
jklfds left21:07
Grace joined21:12
cabazon93 left21:14
raffo joined21:20
jklfds joined21:22
thuna` left21:22
jklfds left21:27
theoceaniscool joined21:27
zeka_ left21:33
zeka joined21:34
jklfds joined21:35
oriba joined21:36
opal left21:36
humanface left21:37
opal joined21:37
irrgit_ left21:40
kjartan_ left21:40
irrgit_ joined21:40
jklfds left21:44
xdminsy left21:44
drocan left21:50
jklfds joined21:50
b0nn FTR this is my .gitconfig the alias section is probably most relevant to the earlier discussion (prev and next) https://gist.github.com/mindfarm/fb5ddcfcdfc239eb88ceea7a5c53981b21:53
raffo left21:54
jklfds left21:55
raffo joined21:56
fling left22:01
fling_ joined22:01
jklfds joined22:01
Night0wl3 left22:02
GingerGeek left22:04
rgrinberg left22:05
jklfds left22:06
JordiGH left22:06
xx left22:07
fling_fling22:09
theoceaniscool left22:09
jklfds joined22:11
drocan joined22:11
flingswing22:14
schne1der left22:16
jklfds left22:16
jklfds joined22:18
rgrinberg joined22:19
rgrinberg left22:29
coot left22:30
Darkfoe left22:38
clime left22:39
Darkfoe joined22:39
jmd left22:42
miigotu left22:54
miigotu joined22:55
miigotu left22:55
miigotu joined22:55
MGF_Fabio left23:04
gh34 left23:11
deltab left23:13
GingerGeek joined23:19
deltab joined23:22
Jaxef joined23:26
chair1 left23:27
miigotu left23:28
miigotu joined23:28
miigotu left23:29
jklfds left23:29
miigotu joined23:29
owuser joined23:34
cappy joined23:35
jklfds joined23:36
[codemonkey] joined23:37
[codemonkey] left23:37
[codemonkey] joined23:38
PantelicGR left23:39
jklfds left23:40
owuser I have a long-running, 18-hour rebase going. I want to turn off the computer and resume tomorrow, with 'git rebase --continue'23:45
Searching the git-rebase man page with 'interrrupt' etc is not telling me if I can do that.23:46
pac1 joined23:46
ch everything is in files23:46
owuser ok23:47
ch so if you could run git rebase --continue now, then you can also do that tomorrow23:48
kjetilho the question is if pressing ^C will terminate the process in a continuable state. I would guess it does, but I don't know for certain23:49
rgrinberg joined23:51
owuser I won't press ^C unless I am at the commandline.23:59

Logs Search ←Prev date Next date→ Channels Documentation