IRCloggy #git 2019-03-05

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.

2019-03-05

Cabanossi left00:02
finalbeta left00:04
akushner joined00:06
dansan joined00:07
Phylock left00:08
Maple left00:09
flying_sausages_ left00:10
db` left00:10
igemnace joined00:11
flying_sausages joined00:11
demize left00:11
Cabanossi joined00:12
Guest99016 joined00:12
bittyx joined00:12
iam730 left00:12
demize joined00:12
Guest99016Maple00:13
db` joined00:15
Olipro left00:15
haasn joined00:17
manuelschneid3r left00:21
Olipro joined00:22
bluezone left00:25
iam730 joined00:28
akushner left00:30
orbyt_ left00:31
akushner joined00:31
taelore joined00:33
adder` joined00:36
adder left00:36
taylorrr joined00:37
taelore left00:37
orbyt_ joined00:38
ThiefMaster joined00:38
strudla left00:38
strudla joined00:38
computerquip left00:38
computerquip joined00:39
mescalin_ joined00:40
nic-hartley left00:41
mat001 left00:42
mescalinum left00:42
Bobdude joined00:42
fstd_ joined00:45
RoriconKnight left00:45
fstd left00:45
fstd_fstd00:45
Olipro left00:46
Olipro_ joined00:46
Olipro_Olipro00:46
hofmann3900 joined00:47
karoshii left00:50
orbyt_ left00:50
karoshii joined00:51
parallel21 joined00:52
jimInDevNull joined00:53
tachoknight_ joined00:53
nikivi left00:53
nikivi joined00:54
yyy- left00:57
BenderRodriguez joined00:57
de-facto left01:01
de-facto joined01:01
orbyt_ joined01:05
in1t3r_ joined01:07
CCDelivery joined01:09
in1t3r left01:09
wildlander left01:10
assemblyman joined01:12
wildlander joined01:15
causasui how can I force a merge commit with a distinct message even if the merge can fast-forward?01:21
mud causasui: --no-ff01:22
causasui thanks01:23
mud Anytime01:23
dpyro_ joined01:25
dpyro left01:25
Essadon left01:26
meejah joined01:27
Olipro left01:29
veegee left01:29
invisbl left01:29
invisbl joined01:30
causasui left01:30
oojacoboo left01:32
black_13 joined01:33
black_13 is this correct placed to ask about git hub or git only01:34
lacrymology left01:34
APK joined01:35
AKPWD left01:35
m0viefreak left01:36
black_13 i try to do a git clone and this fails with "black_13@github.com: Permission denied (publickey)."01:36
it should use my company email01:36
lacrymology joined01:37
victorqueiroz left01:42
kneeki left01:43
iNs left01:43
iNs joined01:44
quizzi left01:46
quizzi joined01:47
quizzi left01:48
quizzi joined01:49
black_13 left01:50
YuGiOhJCJ left01:53
prakashdanish joined01:55
Goplat joined01:57
causasui joined02:00
prakashdanish left02:01
prakashdanish joined02:02
Sasazuka left02:02
gxt left02:03
mat001 joined02:06
wildlander left02:07
causasui left02:09
mat001 left02:10
F0rTex left02:18
F0rTex joined02:19
learningc joined02:19
steven left02:22
akushner left02:22
z8z joined02:23
finalbeta joined02:25
kjartan left02:31
User_ joined02:31
lacrymology left02:32
kjartan joined02:35
learningc left02:35
yonder left02:35
scapegoatee joined02:38
scapegoatee Can I simply concatenate a -m flag and my message after git revert, instead of going to vim and typing a message?02:40
JanC left02:43
gambl0r3 left02:47
JanC joined02:48
scapegoatee left02:50
kerframil joined02:51
boombatower left02:52
inkbottle left02:54
nic-hartley joined02:55
thiago joined02:57
cbreak left02:57
iNs left03:00
iNs joined03:01
Spacew00t joined03:10
xcm left03:16
xcm joined03:17
jakogut left03:20
invisbl left03:24
prakashdanish left03:25
Dirak_ joined03:27
prakashdanish joined03:27
nic-hartley left03:29
Dirak left03:29
Dirak_ left03:32
learningc joined03:33
de-facto left03:35
User_ left03:35
de-facto joined03:36
User_ joined03:39
fassl left03:41
learningc left03:42
invisbl joined03:45
Anthaas left03:48
Anthaas joined03:48
null1337 left03:49
invisbl left03:49
z8z left03:50
prakashdanish left03:53
kyan joined03:54
lagothrix left03:58
lagothrix joined03:58
stitched_unicorn joined04:02
McBride36 joined04:07
McBride36 i initialized a repo. staged files, clicked unstage and now all my files are gone. am i boned?04:07
mven left04:10
mud McBride36: what gui? Are the files actually gone or just not shown in the gui?04:11
McBride36 atom, git04:12
and if i ls the dir, it's gone, toast04:12
except for .git and my directories04:12
kadoban If it actually staged them in git, it should be possible to get them back04:13
McBride36 wasn't pushed04:13
and it was initializing a fresh repo04:13
kadoban McBride36: How many files we talking? The only way I know is kind of tedious04:13
McBride36 uh, it's like 15-20 files? It's my infrastructure as code04:14
kadoban But the tedious way is ... first make a copy of the directory, this is important because I don't do this much and you want to have a backup in case something of this screws something up.04:14
McBride36 done04:15
mven joined04:15
kadoban Then do: git fsck --lost-found and look for all of the dangling blob entries, if you do 'git show <whatevershaid>' for each one, most of them should be your files04:15
Actually, you might be able to look for uhm I think it'd be dangling commit and just checkout that shaid: git checkout <whatever> it's possible that'll just bring them all back04:15
McBride36 how do i find dangling commit04:16
kadoban Should be in the same list. Or maybe staging files doesn't actually make a commit, just a blob.04:16
McBride36 well i've got the list of blobs04:16
and a missing tree04:17
kadoban You could try 'git checkout' on each blob, one of them might be the uhm treeish thing that stands for the whole directory. I dunno if that works though04:17
Oh try 'git checkout' on the tree, might save some time04:17
Dirak joined04:17
McBride36 cannot switch branch to a non-commit04:18
Ori_B left04:18
kadoban Hm, too bad04:18
din0 joined04:18
McBride36 it's not that many files, should be doable, writing a script to do this p quick04:19
kadoban Tedious it is then. Most of the blobs should be your files though, hopefully that works. If it does, just do 'git show whatever' and when you figure out what file it was, do 'git show whatever > the_filename.txt' Looks like https://github.com/ethomson/git-recover exists as well, though I'm pretty sure it's just a very transparent wrapper on doing exactly this anyway04:19
McBride36 either way, it's a big help, thanks04:21
kyan left04:21
kadoban Yeah no problem, good luck04:21
noonien left04:23
ferdna joined04:30
cfoch joined04:30
User__ joined04:31
navidr left04:32
User_ left04:35
mescalin_ left04:37
v01d4lph4 joined04:37
McBride36 it's tedious but significantly better than the alternative04:38
edrx joined04:39
mven left04:40
spacesuitdiver joined04:41
SpeakerToMeat left04:45
CCDelivery left04:46
steven joined04:46
edrx hi - help, I'm feeling brain-dead... by running "git log --oneline" I can see that the two last revisions of my repository are 92702c7 and b0f124e, and I know that the file "ChangeLog" has changed between these two revisions... how do I output the file ChangeLog in revision b0f124e to stdout?04:47
invisbl joined04:51
howdoi joined04:52
MACscr joined04:55
gdibass joined04:58
Inline left04:58
pks_ joined05:01
Cabanossi left05:02
kapil____ joined05:02
Xiti left05:02
pks left05:03
pks_pks05:03
Xiti joined05:03
dviola joined05:05
Cabanossi joined05:06
mven joined05:07
mven left05:07
tsdh left05:07
McBride36 kadoban: back to situation normal. you're a lifesaver. thanks a lot05:09
orbyt_ left05:09
edrx aha - git show b0f124e:ChangeLog =)05:15
klow joined05:20
prakashdanish joined05:23
mat001 joined05:30
User_ joined05:32
grawity left05:34
User__ left05:35
mat001 left05:35
invisbl left05:42
dpyro_ left05:47
wyre left05:49
wyre joined05:49
dpyro joined05:49
Dirak left05:50
Dirak joined05:51
govg left05:56
tsdh joined05:57
kerframil left05:59
irqq left06:00
rsrx joined06:02
invisbl joined06:03
zalt i wonder does git apply behave like git am?, i have a series of patches created using format-patch and i want to apply them with their metadata06:07
zalt uses ancient features of git06:07
invisbl left06:08
rsrx left06:10
rsrx joined06:10
thiago no06:12
git apply applies a patch to your tree06:12
git am applies a commit to your history06:13
one commit or more, actually06:13
am = "apply mail(box)"06:13
zalt yes, but i don't have mail!, and i'm trying to use it, i have a bunch of patch00number--message.patch06:14
thiago that's a mail06:14
when you store your email in a mailbox or especially in a maildir, git am can consume them directly06:14
xcm left06:15
zalt technically it was sent over unencrypted ftp, but yeah, i assume it is equivilent06:15
thiago anyway, you don't need that. All you need are those files.06:15
just git am the files (in order)06:15
xcm joined06:15
zalt sorry i have no experience with unix mail, what makes a dir a maildir?06:15
zalt tries that06:15
thiago the dir structure. A maildir has three subdirs (cur, tmp and new) and each file in them is an email06:16
a mailbox is a single file, containing many emails06:16
brb06:18
thiago left06:19
edrx left06:20
thiago joined06:20
zalt thiago, thanks!, that worked06:23
thiago I'm glad06:23
zalt i see the commit hashes are different from the source pc, is that normal? (it suffocated on some files but i fixed that)06:23
thiago yes, it's normal06:24
zalt hmm, i wonder what proves the integrity of a certain commit then? is that what signing is for06:25
zalt wonders whether git commit hashes are deterministic06:25
thiago they are deterministic06:25
they differ for you because at least one source of the data changed06:26
git am recreates the commit, using your name and the current date as the committer information06:26
zalt hmm, that's not a problem in my use case, it's just interesting that this provides an alternative way of the push/pull way06:26
thiago you also don't have to apply the commits on top of the base that the submitter used, so the parent would also be different06:27
if you pull (merge) instead, then the commit hashes are preserved and you can cryptograhically guarantee no tampering happened06:27
zalt i assume in a certain point in the future i can bring the whole repo from the other pc and sync them somehow to make sure the two are synced :D06:27
hofmann3900 left06:27
thiago signature is something on top, something that says that a given person stands by that particular commit hash06:28
zalt (iirc git supports pulling even from directories)06:28
thiago yes, you can06:28
zalt that's cool, thanks :D06:28
rsrx left06:29
zalt will use git format-patch as his primary way of communicating changes around06:29
zalt i just need a script that applies them automatically sorted according to the patch numbers, i had to apply 5 manually :D06:30
thiago like you said, you can just directly pull from one machine's directory to the other06:31
git pull username@othermachine:/path/to/repo06:31
another not well known trick is to use bundles06:31
git bundle create will package a bunch of commits into a single file. To apply them... git pull06:32
hofmann3900 joined06:32
learningc joined06:32
User_ left06:35
thiago left06:37
assemblyman left06:39
sQVe joined06:43
Bobdude left06:45
random_yanek left06:45
mat001 joined06:50
random_yanek joined06:53
stitched_unicorn left06:59
mat001 left06:59
lowbro joined07:01
theoceaniscool joined07:02
Noti joined07:09
ferdna left07:10
sgen joined07:11
spacesuitdiver left07:12
SuperKaramba joined07:14
mat001 joined07:14
BenderRodriguez left07:15
yuriii joined07:17
prakashdanish left07:18
mat001 left07:19
Noti left07:22
mat001 joined07:28
rsrx joined07:29
Makaveli7 joined07:30
mat001 left07:31
User_ joined07:32
learningc left07:35
Goplat left07:38
Dirak left07:42
lightstalker left07:43
oxymoron93 joined07:43
dege joined07:44
lightstalker joined07:45
Novae left07:52
Novae joined07:52
Silenced joined07:56
ATON left07:57
zalt_ joined07:59
lankanmon left08:00
causasui joined08:00
cfoch left08:00
renich left08:01
lankanmon joined08:01
zalt left08:02
SkarmoutsosV joined08:02
mirazi_heket joined08:03
Noti joined08:04
causasui left08:04
tarkus joined08:05
mirazi_heket hello, can you please help me configure visual studio code to push changes to gerrit (not bypassing review)? normally im using "git push origin HEAD:refs/for/master" for that AND i have also tested using "git config remote.origin.push HEAD:refs/for/master" and doing git push in vscode, but it does not go to review - what config command should i use so i could use git push from vscode?08:09
prakashdanish joined08:09
Kakky joined08:09
enoq joined08:15
Mattiaslndstrm left08:24
Mattiaslndstrm joined08:25
mirazi_heket note that vscode does "git push origin master:master"08:25
gloomy joined08:28
pks_ joined08:29
gloomy left08:32
pks left08:32
pks_pks08:32
learningc joined08:32
osse mirazi_heket: if that's what vscode does then you must change it08:34
zalt__ joined08:35
User_ left08:35
gloomy joined08:36
zalt_ left08:37
dhanush joined08:37
Mattiaslndstrm left08:39
Mattiaslndstrm joined08:44
kadoban left08:45
cbreak joined08:46
hussam left08:46
Noti left08:52
bashfulshell left08:55
SlashLife left08:58
yyy- joined09:03
mirazi_heket anyone did that?09:04
pks_ joined09:06
floppydh joined09:07
gdibass left09:08
Mattiaslndstrm left09:08
pks left09:09
pks_pks09:09
in1t3r joined09:09
in1t3r_ left09:10
in1t3r left09:12
in1t3r joined09:12
gthm joined09:15
nabil_ joined09:20
SkarmoutsosV left09:20
yyy- left09:22
nabil__ left09:23
mohabaks joined09:29
mohabaks left09:31
rsrx left09:31
User__ joined09:32
bachler left09:32
learningc left09:35
basteh joined09:37
kjartan left09:38
crmne left09:41
crmne joined09:41
kjartan joined09:43
sgen left09:45
sgen joined09:45
pks_ joined09:48
pks left09:50
pks_pks09:50
learningc joined09:54
User__ left09:56
sgen left09:58
sgen joined09:58
mase-tech joined10:06
dpyro left10:09
mase-tech left10:09
mase-tech joined10:10
Silenced left10:11
Noti joined10:15
Silenced joined10:15
catsup left10:17
catsup joined10:17
catsup left10:18
catsup joined10:18
yyy- joined10:19
sentriz joined10:21
pks_ joined10:23
sQVe left10:25
Anticom joined10:25
sQVe joined10:25
pks left10:26
pks_pks10:26
User__ joined10:32
learningc left10:35
mase-tech hi10:41
cousteau joined10:42
cousteau Hi!10:42
mase-tech I have the number of a commit in my case 15991. I think I need the corresponding commit id to "jump" there. Because I need to "jump" there because I know that the source I want to compile is working.10:44
cousteau How hard is it to "annex" a project that is currently a Git submodule?10:45
mase-tech If I use git log it shows only the commit ID so I do not know which one is the right one10:45
_ikke_ cousteau: git annex and git submodules have different purposes10:45
in1t3r left10:45
cousteau Ah, I meant "annex" in a political way, didn't kniw it was a thing in git10:46
in1t3r joined10:46
_ikke_ ah10:46
!subtree10:46
gitinfo The subtree merge method is great for incorporating a subsidiary git repo into your current one with "unified" history. Read http://git-scm.com/book/en/v2/Git-Tools-Advanced-Merging#_subtree_merge for more info, see also !git-subtree and !git-stitch-repo.10:46
OtakuSenpai joined10:48
mase-tech what did I wrong to don t get help ?10:48
_ikke_ mase-tech: what do you mean with commit number?10:50
cousteau mase-tech: isn't the commit number just part of the commit hash?10:50
_ikke_ Git does not support them, so there is no direct way to know what commit nummber corresponds with what commit hash10:51
cdown left10:52
mase-tech _ikke if you look at https://github.com/FreeCAD/FreeCAD you will see 16,051 commit. I did call commit number = number of commits.10:52
cousteau, I do not know10:53
_ikke_ mase-tech: that's not a unique way to number commits10:53
mase-tech I want to jump to commit number 1599110:53
osse mase-tech: where did you get the number 15991 from?10:53
_ikke_ to reference commits I mean10:53
mase-tech because I know the source is working10:53
cousteau I mean if a commit hash is 135795200ba3d4ffe... its shortened form will be 1357952 and it will look like some sort of version number but it's actually a hex hash10:53
irqq joined10:54
mase-tech nice let me verify it10:54
bachler joined10:54
mase-tech so I need to put 15991 to hex and then look at git log10:54
then I can search for it10:55
WhiskerBiscuit left10:55
cousteau Alternatively, it might be a tag with the version number10:55
_ikke_ mase-tech: that number might already be hex10:55
osse mase-tech: where did you get that number from?10:55
cousteau _ikke_: do you recommend me to learn subtree in detail?10:56
mase-tech https://github.com/FreeCAD/FreeCAD10:56
the master is on 1605110:56
16051 commits10:56
cousteau mase-tech: yes I meant 15991 is either hex or a version number10:56
mase-tech either not10:57
pks_ joined10:57
osse why won't you answer me :(10:57
mase-tech 15991 is the number of commit where i compiled the source10:58
osse, 16051 or 1699110:58
sorry typo10:58
osse the repo doesn't look very branch heavy, so you should be able to do git rev-list --count master10:58
mase-tech osse, 16051 or 1599110:58
osse and then git rev-list --count master~1000 or something. adjust the number until it's correct, and that's probably the commit you want10:59
so you can git checkout master~765 for example10:59
cousteau mase-tech: that's about as useful as saying the ad you were seeing when you downloaded the git10:59
It's just information about the whole project, not about a specific commit10:59
lankanmon left11:00
pks left11:00
pks_pks11:00
osse if you change to a tag in the github page the number changes11:01
mase-tech problem not solved I am looking plz wait11:01
osse so my guess is it's just rev-list --colunt11:01
count11:01
cousteau It says the number of commits there are... then again it seems to be only the ones on a certain branch so osse's solution might work11:01
osse i think that will get him pretty close11:02
doesn't appear to be a very "parallel history" so to speak11:02
mase-tech I think I have it11:02
cousteau If nothing else works, try using the date, and/or git bisect11:02
mase-tech the commit I want is 16051-1599111:02
cousteau Huh? So, like, 60?11:03
mase-tech yes, form there the commit it11:03
cousteau But yeah that sounds like a job for git bisect11:04
mase-tech so I need info about 60 commits befor master11:05
cousteau I'd clone the repo and use gitk or similar to visualize the tree11:06
Makaveli7 left11:07
SkarmoutsosV joined11:08
mase-tech git log -60 --pretty="%H"11:08
b0d83f3c5e150362d1c95579068af41bde7d664011:08
this should be the winner11:09
osse https://github.com/FreeCAD/FreeCAD/tree/b0d83f3c5e150362d1c95579068af41bde7d664011:10
says 15992 there now11:10
One more!11:10
mase-tech but 16051-15991 =6011:11
ok11:11
than +111:11
enoq left11:12
AtumT joined11:13
cousteau If what you're looking for is which commit added/removed something, git bisect might be what you're after11:13
osse mase-tech: that git log lists 60 commits. so the last it lists is 59 before master11:14
master itself is the first it lists11:14
enoq joined11:14
cousteau It can let you pinpoint the commit where things broke in only 6 attempts instead of 6011:14
mase-tech ok make sense11:14
in1t3r left11:15
cousteau (maybe more if merges are involved)11:16
in1t3r joined11:16
mase-tech git rev-list HEAD --count11:18
gives the actual commit number = 1605111:19
Is it possible to in commit id 10c745175f8a121b594ee6b0612cc487ebf43ba1 and get the cummitnumber11:20
nabil_ left11:22
nabil_ joined11:23
mase-tech git rev-list 10c745175f8a121b594ee6b0612cc487ebf43ba1 --count11:23
this is the winner11:23
thanks for your all support, I am new at git and will need more support11:24
so thanks all <311:24
cswl joined11:25
gareppa joined11:28
mowcat left11:31
gareppa left11:31
in1t3r left11:31
pks_ joined11:32
learningc joined11:32
pks left11:33
pks_pks11:33
in1t3r joined11:33
User__ left11:35
paraxial joined11:42
in1t3r left11:43
TimWolla left11:43
lankanmon joined11:46
mescalinum joined11:50
TimWolla joined11:53
learningc left11:55
SkarmoutsosV left11:55
n3wborn joined11:59
xcm left12:00
emsjessec joined12:00
Fernando-Basso joined12:00
cdown joined12:01
yonder joined12:02
tmm88 joined12:03
xcm joined12:04
emsjessec left12:04
SkarmoutsosV joined12:05
SlashLife joined12:07
pks_ joined12:08
lucasb joined12:08
pks left12:11
pks_pks12:11
mona_x left12:11
tarkus left12:11
emsjessec joined12:17
tarkus joined12:19
Essadon joined12:21
mowcat joined12:21
Essadon left12:21
emsjessec left12:22
Essadon joined12:22
tmm88 left12:22
emsjessec joined12:22
estodiMania joined12:24
emsjessec left12:26
dustinm left12:26
dustinm joined12:28
emsjessec joined12:29
goTAN joined12:29
estodiMania left12:29
estodiMania joined12:30
gloomy left12:30
estodiMania left12:30
estodiMania joined12:31
mase-tech I checkout to older commit12:32
sQVe left12:33
mase-tech I search the command for the current commit id I am working with12:33
emsjessec left12:33
j416 commits don't have commit numbers12:34
you can have two commits made at the same time in parallel with an equal number of commits before them12:35
rick8024 joined12:35
KnoP left12:37
rick8024KnoP12:37
hofmann3900 left12:39
tarkus left12:40
estodiMania left12:43
zalt joined12:44
SkarmoutsosV left12:46
zalt__ left12:46
pks_ joined12:46
Makaveli7 joined12:47
estodiMania joined12:48
MrMojit0 joined12:48
pks left12:49
pks_pks12:49
estodiMania left12:49
MrMojit0 left12:53
Xatenev joined12:56
Xatenev hi12:56
michael_mbp left12:56
Xatenev what might be the cause that git shows a file modified if it isnt?12:56
i compared via git show HEAD:myfile|md5sum12:56
md5sum myfile12:56
its equivalent12:56
osse well what does git diff say?12:57
_ikke_ Xatenev: Line ending normalization?12:57
Xatenev all lines modified12:57
osse then that's it12:57
Xatenev i tried to set filemode and line endings12:57
_ikke_ what does git ls-files --eol <filename> say?12:57
mase-tech left12:58
Mattiaslndstrm joined12:59
Xatenev i/crlf w/crlf attr/text eol=lf13:01
sorry for late response13:01
_ikke_, osse ^13:01
osse Xatenev: that explains it.13:01
Xatenev can you explain for me?13:01
i /crlf and w/crlf sounds weird as im under linux13:01
but im not sure how to itnerpret the output13:01
interpret13:01
chele joined13:01
osse it's checked in as crlf, but you've explicitly said the file is supposed to be lf13:01
Xatenev via some config you mean?13:02
whjat does /i and w/ stand for?13:02
oxymoron93 in search through triggers, for good articles to read about line endings I found this :D !use_lf (not related to the issue)13:02
gitinfo To eliminate all issues with line-endings in a repo it is recommended to change all files to use LF, and then convince all contributors to use LF-aware editors (Notepad++ works well for Windows), by force if necessary. !crlf has some tips if this is not feasible.13:02
osse Xatenev: Index and Working tree13:02
Xatenev ah13:02
makes sense13:02
thank oyu13:02
osse basically what you should do is commit the change13:02
_ikke_ git add --renormalize <file>13:02
osse either that or change your .gitattributes file13:02
_ikke_ with line ending normalization, the index should contain LF, not CRLF13:03
Xatenev _ikke_, thank you!13:04
prakashdanish left13:06
Xatenev _ikke_, osse how can i configure MY line ending to be crlf?13:07
osse Xatenev: change the .giattributes file13:07
_ikke_ Xatenev: don't put eol=lf in gitattributes13:07
CodeSlingerPaul joined13:07
_ikke_ that forces everyone to use the same line endings13:07
michael_mbp joined13:08
tarkus joined13:08
Xatenev thank you13:10
treehug88 left13:12
treehug88 joined13:13
Xatenev osse, "working tree" is basically remote right?13:13
_ikke_ no13:14
Mattiaslndstrm left13:14
_ikke_ Those are your local files you are working on13:14
Xatenev oh13:14
so the remote is on the right?13:14
in the output?13:14
or what is rmeote13:14
remote13:14
osse remotes are irrelevant here13:15
Xatenev in the output of git ls--files13:15
_ikke_ what osse said13:15
Xatenev yea then i have no idea how to interpet the output13:15
lmao13:15
osse "i/crlf": in the index (in git's db, if you will. checked in) the file has crlf endings13:16
Xatenev yes13:16
osse "w/crlf": the actual physical file on disk has crlf endings13:16
Xatenev "checked in" === remote to me13:16
i dont know what checked in means otherwise13:16
_ikke_ Xatenev: git is distributed13:16
osse Think of it as "unmodified"13:16
_ikke_ Xatenev: It can work completely without any remote13:16
Xatenev yes13:16
osse Xatenev: as the file is in the current commit13:16
Xatenev yeah thats what i meant with remote13:16
the HEAD basically13:16
_ikke_ Ok, that's not what git calls remote13:17
Xatenev ok i got it then13:17
_ikke_ if you run git commit, that's a local operation13:17
osse and finally "attr/text eol=lf" means that git is configured to convert the file to LF on checkout13:18
Xatenev _ikke_, yeah i know that :P13:18
osse, understood13:18
osse and that's why git says it's modified13:19
because it is13:19
git modified it, the silly thiong13:19
Xatenev yeah its just a bit weird, a friend of mine had this issue and he just cloned it again13:19
osse or something, I dunno. it's confusing as hell13:19
Xatenev and now it seems to work just fine and git ls--files --eol now says i/lf13:19
i dont see how this is possible without anyone having pushed a change, no?13:19
I mean the files can't just magically change their line endings13:20
osse git can change them, your editor can change them.13:20
Xatenev yeah but the statement was ntohing has changed13:20
no editor settings, no gitattributes settings or config13:20
OtakuSen1ai joined13:20
Xatenev but i dont think thats possible, whatever13:20
thanks for the help13:20
n3wborn left13:21
OtakuSen1aidx_ob13:21
osse Xatenev: git check-attr -- path/to/file13:22
_ikke_ Xatenev: _something_ did change :)13:22
osse Xatenev: git check-attr -a -- path/to/file13:22
Xatenev _ikke_, ikr13:22
kneeki joined13:23
parsnip left13:23
osse what does that command print?13:24
hmm, i was hoping check-attr could tell what file it came from13:26
Silenced_v2 joined13:27
Silenced left13:28
Xatenev my friend is gone it seems13:28
lol13:28
cousteau left13:29
pks_ joined13:32
Forlorn_ joined13:32
pks left13:34
pks_pks13:34
Forlorn_ left13:38
learningc joined13:43
Makaveli7 left13:43
R2robot left13:44
User__ joined13:46
learningc left13:50
learningc joined13:51
R2robot joined13:53
v01d4lph4 left13:53
User__ left13:54
boombatower joined13:54
User__ joined13:55
bashfulshell joined13:56
horribleprogram joined13:57
learningc left13:59
in1t3r joined13:59
swalladge left14:00
User__ left14:00
learningc joined14:00
dviola left14:02
OtakuSenpai left14:06
User__ joined14:08
TrentonDAdams left14:09
kjartan left14:10
OtakuSenpai joined14:10
learningc left14:11
mirazi_heket left14:12
prakashdanish joined14:12
howell joined14:13
User__ left14:14
enoq left14:15
kjartan joined14:15
emsjessec joined14:16
Nawab joined14:16
Nawab left14:17
OtakuSenpai left14:18
Achylles joined14:22
thomasross left14:23
thomasross_ joined14:23
thomasross_thomasross14:23
zalt left14:28
horribleprogram left14:28
qsx left14:28
zalt joined14:28
zalt left14:29
zalt joined14:29
zalt left14:30
qsx joined14:30
zalt joined14:30
Makaveli7 joined14:35
mowcat left14:35
SpeakerToMeat joined14:36
inkbottle joined14:37
bluezone joined14:40
learningc joined14:41
User__ joined14:46
jkt left14:47
zalt left14:48
mescalinum left14:48
learningc left14:50
tsdh left14:51
learningc joined14:52
stkirk joined14:54
User__ left14:55
Darcidride joined14:55
renich joined14:56
Inline joined14:57
YuGiOhJCJ joined14:58
lacrymology joined14:59
horribleprogram joined15:00
User__ joined15:03
learningc left15:07
learningc joined15:07
Keytap joined15:08
niko left15:08
User__ left15:10
czart joined15:12
floppydh left15:12
lowbro left15:12
bast3h joined15:12
basteh left15:16
renich left15:21
Luyin I have a patch created by running "git diff > foo.patch". I now want to compare this patch with the current HEAD. is there an easy way to do that? something like "git diff < foo.patch"?15:23
adder`adder15:26
McBride36 left15:27
Mattiaslndstrm joined15:28
kini left15:29
Darcidride left15:29
prakashdanish left15:30
horribleprogramGuest2443215:30
Guest24432 left15:32
nikivi left15:33
_ikke_ Luyin: What diff exactly do you want to see?15:33
Can't you just apply the patch and then diff that?15:33
(a patch is already a diff)15:33
prakashdanish joined15:34
nikivi joined15:34
Luyin _ikke_: no, my working tree is dirty15:35
_ikke_ Then my question remains, what is it that you expect to see?15:35
Luyin the differences between the changes in that patch against what my working directory contains15:36
manuelschneid3r joined15:36
theoceaniscool Luyin, Isn't that, you know, the patch itself?15:36
Luyin no, I'm not sure of that15:37
_ikke_ The patch itself is a diff between that commit and it's parent15:37
renich joined15:38
osse Luyin: Generate a different patch for yourself by the same method and diff the two patches.15:38
_ikke_ Luyin: Don't you want to see the diff between that commit and the working tree (rather than the diff of that comit)?15:38
bremner Luyin: stash your dirty tree, apply the patch on a new branch, change back, pop the stash, then diff15:38
or, as _ikke_ says, use interdiff15:39
kini joined15:39
oxymoron93 left15:39
Luyin hmmm. ok maybe a bit more context helps: I made some changes in my "IDE" (it's not an IDE, it's a project GUI, but it writes a text file which is tracked by git), but it crashed before I could save. now I have something I've already added to the index, and something that I lost. I created the patch somewhere in between, but I can't be sure when. So I don't know what exactly it contains - only what's already15:40
staged, or more than that. I'm hoping for more, because that would enable me to get back some work I lost when the GUI crashed.15:40
benjwadams left15:41
renich left15:43
prakashdanish left15:46
thiago joined15:48
gableroux joined15:50
gableroux left15:50
assemblyman joined15:50
SkarmoutsosV joined15:51
OtakuSenpai joined15:52
spacesuitdiver joined15:56
prakashdanish joined15:56
Xatenev left15:58
logithack left16:01
logithack joined16:04
tarkus left16:05
mescalinum joined16:06
kent\n left16:08
mescalinum left16:08
igemnace left16:09
noonien joined16:09
kent\n joined16:09
SkarmoutsosV left16:14
oojacoboo joined16:15
mescalinum joined16:19
orbyt_ joined16:19
nic-hartley joined16:19
tang^ joined16:20
Nawab joined16:23
OtakuSenpai left16:25
Rovanion left16:27
learningc left16:29
dpyro joined16:29
Kakky left16:30
cousteau joined16:31
nic-hartley left16:33
nic-hartley joined16:33
Envil joined16:33
nic-hartley left16:34
mescalinum left16:34
prakashdanish left16:35
cousteau OK so I'm using git subtree (is this part of git, or a third-party addition?) but I cannot use it directly because of a couple of conflicts (specifically, I need to remove a placeholder .gitignore and also I want to remove the submodule I'm about to add as a subtree)16:35
But I cannot just do that without committing, or else ˋgit subtree addˋ complains16:36
But if I commit -- oh no! -- there'll be an extra commit in the history I'd rather just avoid having16:37
is there a way to git subtree add --amend (to squash the git-subtree commit with the previous one), or git subtree add --force / --add (to remove the need for an extra commit)?16:38
wyre left16:38
wyre joined16:41
tmm88 joined16:41
Rovanion joined16:41
spacesuitdiver left16:43
spacesuitdiver joined16:43
learningc joined16:45
jungsubk joined16:46
chele left16:46
mescalinum joined16:46
Mattiaslndstrm left16:47
wyre left16:47
thiago left16:48
cousteau meh, I guess I'll make one of those "commit loops" I make to group multiple commits together and just go with that16:49
tmm88 left16:49
cousteau (basically I force a --no-ff so that the git tree has a weird "loop" on it which allows me to visually group multiple commits together)16:49
__rohit joined16:50
orbyt_ left16:50
tarkus joined16:53
renich joined16:53
BlessJah left16:53
cdown left16:53
kezimo joined16:54
swalladge joined16:54
igemnace joined16:54
BlessJah joined16:54
_ikke_ cousteau: there are two parts, the subtree merge strategy, which is built-in, and a third-party tool to provide a workflow around them16:57
edd_lc joined17:00
bremner at least debian and derivatives ship it as part of the git core17:01
*shrug*17:01
edd_lc if i want to git push the current local branch to a new remote branch, should i do `git push origin HEAD:newbranch`?17:01
__rohit left17:01
__rohit joined17:02
APKAKPWD17:06
Dirak joined17:07
Nawab left17:07
wyre joined17:08
jungsubk left17:12
alyptik left17:13
cousteau bremner: don't look at me Marge, I'm using Windows17:13
bremner condolences17:13
cousteau gets whipped by cr-lf line endings17:14
cousteau bremner: it forges a character17:16
but hey, at least this git thing provides a bash console17:17
matsaman joined17:17
kapil____ left17:21
CCDelivery joined17:23
vavkamil joined17:25
sparr j416: I've discovered that ~/.gitconfig overrides ~/.config/git/config so I'm going to recommend people clone/link the dotfiles config to the latter and put their personal overrides in the former, which will also play nice with `git config --global`17:25
czart left17:25
orbyt_ joined17:32
akushner joined17:32
__rohit left17:33
nikivi left17:36
orbyt_ left17:36
nikivi joined17:36
thiago joined17:38
igemnace left17:39
mat001 joined17:39
jungsubk joined17:41
prakashdanish joined17:41
cd joined17:42
goTAN left17:47
cousteau left17:47
orbyt_ joined17:47
causasui joined17:48
j416 ¯\_(ツ)_/¯17:48
sparr: you know my view on it. :)17:48
Anticom left17:49
irqq left17:50
Mattiaslndstrm joined17:50
Mattiaslndstrm left17:52
tarkus left17:53
prakashdanish left17:53
mstrommenHD joined17:55
prakashdanish joined17:58
cbreak left17:58
cbreak joined17:59
n3wborn joined18:01
Mattiaslndstrm joined18:01
akushner left18:01
akushner joined18:03
renich left18:04
akushner left18:04
zampano left18:04
learningc left18:05
Dirak left18:06
akushner joined18:09
Keytap left18:10
akushner left18:11
sat-aton joined18:13
Envil left18:14
envil_ joined18:14
satifant left18:15
mat001 left18:15
shabius left18:16
learningc joined18:17
mat001 joined18:17
alyptik joined18:18
Dirak joined18:21
millerti joined18:21
vejetaryenvampir joined18:22
kjartan left18:23
vejetaryenvampir I use ST (Suckless/Simple Terminal) and I can't use ctrl+h backspace in git prompt. Do you geeks know how to fix it?18:23
akushner joined18:23
OtakuSenpai joined18:23
vejetaryenvampir I cant' use ctrl+h to backspace*18:24
jungsubk left18:24
bashfulshell left18:26
akushner left18:26
kapil____ joined18:26
kjartan joined18:28
prakashdanish left18:29
OtakuSenpai left18:29
Keytap joined18:35
daurnimator left18:35
sparr vejetaryenvampir: git prompt?18:35
vejetaryenvampir I mean promt like thing that require your password for private repos.18:36
prompt*18:36
shabius joined18:36
edd_lc left18:38
learningc left18:38
manuelschneid3r left18:39
_ikke_ vejetaryenvampir: username/password prompt18:39
vejetaryenvampir Yeah.18:39
_ikke_ no clue myself18:40
kadoban joined18:40
renich joined18:41
daurnimator joined18:41
sparr when you press it does anything or nothing happen?18:43
renich left18:43
sparr possibly relevant: https://stackoverflow.com/questions/37094553/git-add-p-doesnt-work-with-ctrlh18:43
renich joined18:44
yyy- left18:47
vejetaryenvampir Yeah, just printing ^H18:49
akushner joined18:53
nic-hartley joined18:54
nowhereman joined19:00
causasui is there a recognized best practice for making merge conflict resolution easier? e.g. i wish I could use my difftool19:03
Sasazuka joined19:03
SkarmoutsosV joined19:04
osse causasui: You can19:05
git mergetool --tool-help19:05
Dirak left19:05
causasui mind blown19:06
osse By default it will try to use your configured difftool if no mergetool is configured19:06
CCDelivery left19:07
gloomy joined19:07
causasui omfg19:08
this is better than when I learned about add -p19:08
how have I lived without this19:08
veegee joined19:11
Mattiaslndstrm left19:12
irqq joined19:13
irqq left19:14
irqq joined19:14
irqq left19:15
tang^ left19:17
yyy- joined19:17
cfoch joined19:18
chaosruler_ joined19:19
hussam joined19:19
Globe_Bloater8 left19:20
d^sh left19:22
d^sh joined19:23
orbyt_ left19:24
chaosruler_ left19:25
mescalinum left19:25
chaosruler_ joined19:25
MrMojit0 joined19:26
orbyt_ joined19:27
Mattiaslndstrm joined19:28
mescalinum joined19:32
akushner left19:32
m0viefreak joined19:35
Dirak joined19:37
bashfulshell joined19:38
Silenced_v2 left19:46
lacrymology left19:47
manuelschneid3r joined19:48
daurnimator left19:54
hydrajump left19:59
daurnimator joined20:02
mowcat joined20:03
orbyt_ left20:03
mstrommenHD left20:03
akushner joined20:07
tang^ joined20:07
orbyt_ joined20:09
matsaman left20:10
gloomy left20:11
WhiskerBiscuit joined20:13
daurnimator left20:15
orbyt_ left20:15
mescalinum left20:23
gloomy joined20:30
envil_ left20:31
Phylock joined20:31
emsjessec left20:35
Fernando-Basso left20:37
Mattiaslndstrm left20:38
assemblyman left20:38
daurnimator joined20:41
kapil____ left20:44
Achylles left20:47
orbyt_ joined20:48
orbyt_ left20:48
lacrymology joined20:50
cdown joined20:50
cswl left20:51
xrexeon joined21:09
nic-hartley left21:11
WhiskerBiscuit left21:12
chaosruler_ left21:13
MrMojit0 left21:15
lucasb left21:28
SkarmoutsosV left21:33
__Myst__ joined21:34
__Myst__ Hi. Performance of `git status` is slow21:34
It takes ~100ms to complete even when not in a git directory at all.21:34
I am running Ubuntu WSL21:34
kadoban __Myst__: AFAIK WSL is known for pretty poor filesystem performance. Maybe it's just that?21:35
GreenJello programs usually need to specifically optimize for WSL, and git might not be either successful or trying yet21:37
barteks2x joined21:37
__Myst__ hmm21:37
disabling windows defender realtime protection makes it take 11ms21:37
i guess i should've tried that first21:37
kadoban That's a long time for a virus scanner, oof.21:37
__Myst__ still, why does window defender multiply by 10x?21:37
barteks2x Is there some quick way to remove a file from specific commit? I already have a few (unpublished) commits on top of it and accidentally commited file I didn't want in the first one21:37
GreenJello barteks2x, you have to do an interactive rebase and modify the commit21:38
kadoban I guess it's git trying to read a bunch of .git/ that don't exist through a few parent levels?21:38
Maybe you could set the thing where it doesn't go too far up the tree looking for .git/ or something21:38
barteks2x it gives me option to do git commit --amend then21:38
but I have no idea how would I them remove the file without actually deleting it21:38
GreenJello I think you `git reset to-remove.txt`, and then do the amend21:39
jstimm joined21:39
barteks2x but at the point I start git rebase -i, it's already commited...21:39
so reset will just reset it to the already commited state21:39
GreenJello oh, right21:39
try: git rm --cached to-remove.txt21:40
kadoban filter-branch with uhm index-filter and 'git rm --cached' maybe?21:40
GreenJello of course, you should back up the file if you don't want to accidentally remove it21:40
barteks2x that seems to work21:41
(rm --cached)21:41
also I never understood how index-filter works21:41
gloomy left21:41
barteks2x one of the few git commands that I would find useful, but don't understand them21:42
__Myst__ Update: MalwareBytes was my antivirus service provider21:44
apparently disinstalling it and using straight-up defender makes it go as fast as if i have nothing at all21:44
(insert flanders)21:45
kadoban barteks2x: You understand filter-branch --tree-filter ?21:45
barteks2x no, as I said, one of the few parts of git I see people use but don't understand21:45
kadoban Oh. Well it just rewrites every commit. It's the same as going through every commit in order (oldest first) and running some command in each21:46
So you can remove files, rename stuff, add stuff, do fun sed stuff21:46
--index-filter is the same thing except you can't actually work on the files, you can only tell git to do stuff. It's just an optimization over --tree-filter (it doesn't checkout the files)21:47
The usual example is if you want to delete a file from history, usually one with like a secret API key in it that you commited by accident. Which would be: git filter-branch --tree-filter --all 'rm secret.txt'21:51
alyptik left21:57
hofmann3900 joined21:58
Cabanossi left22:03
n3wborn left22:04
shakalaka joined22:07
yyy-yyy22:10
scarcry joined22:10
alyptik joined22:10
nabil_ left22:11
nabil_ joined22:12
nabil_ left22:12
Cabanossi joined22:12
Makaveli7 left22:12
nabil_ joined22:12
mat001 left22:12
mat001 joined22:13
nabil_ left22:13
justanotherbody joined22:13
nabil_ joined22:13
justanotherbody if i do `git rebase --interactive VALID_HASH`, keep "pick" on all the commits, and then proceed is it unexpected that i get a conflict?22:14
the conflict happens on a commit with CRLF issues (non-CR file effectively replaced with CRLF endings) and i'm on a linux box, so maybe that's the cause?22:17
nabil_ left22:17
nic-hartley joined22:17
duderonomy left22:17
nabil_ joined22:17
mowcat left22:18
akushner left22:19
AtumT left22:21
Noti left22:21
xrexeon left22:22
Phylock left22:27
thiago left22:33
kjartan left22:35
greatgatsby joined22:36
howell left22:36
__Myst__ left22:40
kjartan joined22:40
CodeSlingerPaul left22:46
thiago joined22:47
dege left22:49
nabil_ left22:49
nabil joined22:50
johnny56_ left22:56
sgen left22:58
tang^ left23:00
mra90 left23:02
Keytap left23:07
Keytap joined23:08
johnny56_ joined23:11
Bobdude joined23:12
Keytap left23:13
theoceaniscool left23:16
CodeSlingerPaul joined23:24
greatgatsby left23:29
assemblyman joined23:30
duderonomy joined23:34
spacesuitdiver left23:34
Dirak left23:35
nic-hartley left23:36
Keytap joined23:41
Dirak joined23:43
thiago left23:48
sgen joined23:50
snits left23:55
alyptik left23:55

Logs Search ←Prev date Next date→ Channels Documentation