IRCloggy #git 2017-12-28

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.

2017-12-28

Munt_ joined00:00
azerus left00:01
phinxy left00:01
FoxRocks left00:02
lep2 left00:03
leprechau joined00:03
finalbeta left00:03
azerus joined00:05
luckman212 joined00:05
pbrewczynski left00:06
raynold joined00:06
energizer joined00:08
sanscoeur left00:10
ZexaronS left00:12
nidr0x left00:13
goweol left00:14
rorro left00:16
nidr0x joined00:16
ZexaronS joined00:17
lactosepolyzen00:20
raijin joined00:22
FoxRocks joined00:24
jstein left00:24
Elon_Satoshi left00:27
igemnace joined00:31
orbyt_ left00:32
danmackay left00:33
bwn left00:34
hash-z3r0 joined00:34
_ADN_ joined00:35
Elon_Satoshi joined00:36
hash-z3r0 left00:40
orbyt_ joined00:41
IanLiu joined00:42
jottr left00:44
Munt_ left00:45
m0viefreak joined00:46
danmackay joined00:47
dsdeiz left00:48
dsdeiz joined00:48
mda1 left00:49
Elon_SatoshiCopenhagen_Bram00:50
manuelschneid3r left00:53
safe joined00:54
kfoonamalik joined00:55
exotime left01:00
Gurkenglas left01:00
exotime joined01:00
TomyLobo left01:01
lyxus left01:02
yohnnyjoe left01:02
katiex7 left01:08
raijin left01:08
pjohan_ joined01:11
regedit left01:14
astrofog joined01:15
shaowei joined01:15
kupad joined01:18
g00s joined01:20
Sasazuka left01:21
orbyt_ left01:23
mostlybadfly joined01:23
qpdbGuest3824101:23
qpdb joined01:23
discopatrick left01:26
pjohan_ left01:26
Guest38241 left01:26
shaowei left01:27
kfoonamalik left01:28
kfoonamalik joined01:29
jstein_ joined01:29
jstein_jstein01:30
shaowei joined01:30
v4ult joined01:31
hash-z3r0 joined01:35
solaris left01:36
kfoonamalik left01:39
Copenhagen_Bram left01:39
Gustavo6046 left01:43
xDEC joined01:43
xD3C left01:45
bwn joined01:47
fission6 left01:53
fission6 joined01:54
cdg joined01:54
xDEC left01:55
xD3C joined01:55
dviola left01:56
neil_cn joined01:58
konsolebox left01:58
cdg left01:59
konsolebox joined01:59
shinnya joined02:00
fission6 left02:04
orbyt_ joined02:08
ZexaronS left02:10
whyme left02:13
drewmcmillan joined02:14
oprypin left02:14
whyme joined02:15
astrofog left02:16
oprypin joined02:16
finalbeta joined02:16
Tobbi left02:18
jstein left02:19
Tobbi joined02:20
_ADN_ left02:20
Guest32854 left02:20
Arcaelyx_ left02:20
enckse left02:20
Copenhagen_Bram joined02:21
LBRapid joined02:21
LBRapidGuest4136602:21
vrishab left02:22
LiftLeft left02:22
shinnya left02:23
LiftLeft joined02:23
enckse joined02:23
Deflate left02:26
Deflate joined02:26
BSaboia joined02:30
lyxus joined02:30
vrishab joined02:31
Aash joined02:31
m0viefreak left02:34
xD3C left02:34
orbyt_ left02:37
QualityAddict left02:41
bkxd left02:44
BSaboia left02:44
awkwardpenguin joined02:46
roger_raymond left02:47
dsdeiz left02:48
dsdeiz joined02:48
dsdeiz left02:48
dsdeiz joined02:48
mfiano left02:49
tunekey joined02:49
markmarkmark left02:49
ilbot3 left02:50
markmarkmark joined02:50
roger_raymond joined02:52
Tobbi left02:54
akushner left02:55
testnick123 joined02:56
gitinfo set mode: +v02:56
cdg joined02:57
Murr left02:57
Murr joined02:57
raijin joined02:57
Aash Should you be VC'ing build files made form source? The repo ends up being quite large...02:57
The application is for business people who are familiar with using git, but not building an app from source02:58
Arcaelyx joined02:58
ilbot3 joined02:58
mfiano joined02:59
KeyJoo left03:01
igemnace is the build fully reproducible with just the source in VC? you can just distribute a build script03:01
cdg left03:02
kadoban Aash: Tracking compiled files is not generally a good idea, no.03:02
thiago left03:02
kadoban Aash: Why should they be familiar with using git, but not building the app? That in general doesn't make a lot of sense. There's other ways to distribute binaries.03:02
LiftLeft I created a script to get the number of issues over time of a github repo. It seems that the number of github issues over time go up linearly over time. why is that? maybe there's a bug in my script03:03
*open issues03:03
Smarticles101 joined03:04
SporkWitch left03:04
LiftLeft won't the number of open issues over time stay roughly the same?03:05
or it just that people forget about them?03:06
yohnnyjoe joined03:06
nidr0x left03:07
igemnace have you confirmed that you're getting the right number03:07
drewmcmillan left03:08
SporkWitch joined03:09
LiftLeft yeah, there's a bug in my script03:11
wait no03:11
I dunno03:11
yohnnyjoe left03:11
VoradorPT left03:12
v4ult left03:14
FoxRocks left03:17
mulvane left03:17
mizu_no_oto joined03:18
Aash kadoban: Yea sure, it's actually building an exe from python source for windows, so a build script didn't come to mind at first03:20
kadoban: time to learn windows batch ;)03:20
schooner joined03:21
ribasushi left03:21
Aash kadoban: Out of curiosity, when you say "there are other ways to distibute binaries"... what are the more common ones?03:22
awkwardpenguin left03:22
Aash kadoban: I know github has a releases feature, but I'm using bitbucket03:22
igemnace simply provide them a download link for the binary03:23
if you want deterministic versioning, tag the commit where you build the binary from03:24
Kobaz what color config is for this line item on git add -p? Stage this hunk [y,n,q,a,d,/,j,J,g,e,?]? ^C03:24
it's showing up dark blue on my black background console and it's almost impossible to read03:25
Aash igemnace: Ah cool, didn't know about tagging commits03:28
chachasmooth_ joined03:28
ribasushi joined03:29
akushner joined03:30
aznman joined03:31
chachasmooth left03:31
aznman Hi, have a question - there's someone out there with a pull request for a project that i have as a dependency. it fixes an upgrade problem. https://github.com/GriddleGriddle/Griddle/pull/753 how can I merge in the changes?03:32
rudi_s1 left03:33
aznman it's an open merge request...03:33
houami joined03:34
igemnace depend on the fork instead03:34
akushner left03:35
aznman there is no fork looks like it's been deleted03:35
or something03:36
endiruna left03:36
igemnace the fork the PR is coming from?03:38
mulvane joined03:38
mulvane left03:38
mulvane joined03:38
phinxy joined03:38
Kobaz mmm, no one knows color configs? :(03:39
jtl_ joined03:41
gxt aznman: Not sure why GitHub does not autolink it, but you can see where the PR wants to merge from under the subject: "vakopian wants to merge 1 commit into GriddleGriddle:v0 from deepcontrast:react16", so you just go to the fork identified by deepcontrast:react16, which is https://github.com/deepcontrast/Griddle/tree/react1603:42
aznman thanks03:43
moei joined03:44
awkwardpenguin joined03:46
mizu_no_oto left03:46
awkwardpenguin left03:46
gxt Kobaz: Looking through man git-config real quick, it's probably color.interactive.prompt.03:46
gitinfo Kobaz: the git-config manpage is available at https://gitirc.eu/git-config.html03:46
awkwardpenguin joined03:48
gxt If it's not that one, just search the man page for <slot> and look around a bit.03:48
Kobaz yes!03:49
yay03:49
it's now yellow, i can see03:49
in all fairness the man page for git-config is 2600 lines03:50
if you don't know what you're looking for, it's an expedition03:50
gxt Well I had no idea what to look for either and just did /color :P but yeah03:51
Glad it works :)03:51
Kobaz me too03:52
JoshuaD left03:54
gxt One of the first things I do after setting up a new box nowadays is adjust the console default colors so dark blue is light enough to be readable on black. The VGA default palette sucks for readability.03:54
And that way I don't have to fiddle with every program individually.03:54
Kobaz oooo03:55
right03:55
good idears03:55
gxt I think I based mine on http://dwarffortresswiki.org/index.php/DF2014:Color_scheme#Higher-visibility_scheme and tweaked it a bit so my tmux and dwm color schemes look nice together without putting a lot of work into it :P04:00
testnick123 left04:01
hash-z3r0 left04:04
juvenal_lunch joined04:05
hash-z3r0 joined04:06
orbyt_ joined04:06
Amanas left04:06
ZyX-I joined04:07
dsdeiz left04:08
jcrites left04:08
dsdeiz joined04:08
dsdeiz left04:08
dsdeiz joined04:08
ASP joined04:09
ASP left04:10
menip joined04:13
konsolebox left04:14
maheshpec left04:15
mmlb left04:16
konsolebox joined04:16
shripadr joined04:18
Noldorin left04:19
nidr0x joined04:25
upperdeck left04:30
upperdeck joined04:33
ogny left04:33
shaowei left04:34
IanLiu left04:34
noobineer left04:42
ZyX-I left04:47
guideline left04:47
imack joined04:48
shripadr_ joined04:50
shaowei joined04:51
shripadr left04:51
katiex7 joined04:54
Bigcheese left04:56
re1 joined04:57
orbyt_ left04:57
Murr left04:57
Cabanossi left04:57
Bigcheese joined04:57
Murr joined04:57
Cabanossi joined04:58
felixsanz left05:02
pks left05:02
pks joined05:04
felixsanz joined05:04
dimi1947 joined05:04
yohnnyjoe joined05:07
amosbird Hi, what is "good first issue" ?05:08
polyzen left05:09
igemnace if you're talking about the github label, it's simply a label for issues for people who want to try to fix their first issue and start contributing to open source05:09
yohnnyjoe left05:12
upperdeck left05:14
amosbird oh05:14
noob issue then05:14
thanks05:14
Derperpe- left05:14
gtristan left05:15
Derperperd joined05:15
upperdeck joined05:15
nchambers joined05:19
nchambers I just made a commit with a message I didn't mean to write. I haven't pushed it yet though. Is there a way to revert that commit?05:19
goweol joined05:21
polyzen joined05:23
capadesu left05:23
zefferno joined05:23
Kobaz soooo05:25
what if i'm trying to make my local copy identical to remote05:25
and i'm doing a pull and have all kinds of merge conflicts05:25
but i don't care, i just want HEAD from the remote05:26
nchambers ah nmd found https://stackoverflow.com/a/927386/378464405:27
_ikke_ No need05:27
nchambers: git commit --amend05:27
Sarge945 joined05:28
nchambers oh05:28
I'll remember that for next time05:28
goweol1 joined05:28
_ikke_ Kobaz: So you want to get rid of any local commits and their changes on that branch?05:29
Kobaz basically, yea05:29
cqi joined05:30
Sarge9451 left05:30
_ikke_ git reset --hard @{upstream} #!!! uncomitted changes will be gone and cannot be recovered through git05:30
Kobaz sounds good05:30
goweol left05:30
Kobaz what if i have no upstream and it's a ssh checkout from another local repo05:34
ie: git pull server:foo/bar/ branch05:34
goweol1 left05:34
_ikke_ Kobaz: then git reset --hard FETCH_HEAD should work05:35
nevodka left05:39
iamyask joined05:39
goweol joined05:40
Kobaz thanks05:40
another q... if i wanted to git diff my current working file (not commited) versus something upstream in remotes05:40
_ikke_ It would be easier if you added it as an actual remote05:41
Kobaz if i do git diff file origin/2.0 myfile... it seems like it's doing comitted vs comitted05:41
menip left05:41
Bin4ry joined05:42
_ikke_ Kobaz: just git diff origin/2.0 myfile05:42
Kobaz hmm05:42
thyat's what i thought05:42
_ikke_ Just tested it here, gives expected otuput05:43
output05:43
nchambers left05:43
Kobaz i have local changes to filefoo05:44
aznman left05:44
Kobaz and some of those changes are already in the remote filefoo05:44
goweol left05:44
Kobaz if i do git diff origin/2.0 filefoo... it's showing + for changes i already have locally05:44
_ikke_ git show origin/2.0:filefoo05:44
Kobaz yeah that shows the file05:45
i could > tmpfile and then do a local diff05:45
jtl_ left05:45
_ikke_ Kobaz: now try: git diff HEAD origin/2.0 filefoo05:46
Kobaz yay05:46
yeah that's it05:46
_ikke_ now you *are* comparing to what's comitted05:47
Kobaz yeah i want to compare what i have that's uncommited, to what is, in the remote05:47
_ikke_ but that's not what that last commit does05:48
HEAD is the current commit05:48
Kobaz hmm05:48
_ikke_ sorry, last command05:48
Kobaz this doesn't make any sense05:48
if i do the diff without HEAD05:49
then it's showing + for stuff i already have05:49
oh, i need to diff the other way05:49
erm, reversing args doesn't like that05:49
_ikke_ What do you want to see actually?05:49
Kobaz okay... so say we have two version, 1, and (2) the latest in origin... and somewhere between 1 and 2, some files got manually copied in05:51
and aren't comitted05:51
basically i want to see what's different between (2) and my local changes05:51
bkxd joined05:51
bkxd left05:51
bkxd joined05:52
Kobaz generally what i do, is git stash05:53
git pull05:53
and fight with the resulting mess05:53
after a git stash pop05:53
bkxd left05:53
Kobaz or i wind up backing up local files, and then locally diffing after05:53
bkxd joined05:53
Kobaz or, i make a copy of my local repo if it's going to be really bad, and then diff between the two05:54
menip joined05:54
FoxRocks joined05:55
goweol joined05:56
_ikke_ Kobaz: When you diff your uncomitted changes to what the remote has, it's logical that you see your local changes prefixed with a +05:57
Because those are changes you added but the remote doesn't have yet05:57
Kobaz i was looking for the reverse direction05:57
_ikke_ That would just show your local changes as removed, is that what you want?05:58
Kobaz yeah basically... what will my local files look like after the pull if nothing was merged05:58
_ikke_ Kobaz: git diff -R origin/2.0 filefoo06:00
Kobaz oh cool so you can reverse it without going nuts with the ref paths06:00
dsdeiz left06:00
nevodka joined06:00
dsdeiz joined06:01
dsdeiz left06:01
dsdeiz joined06:01
regedit joined06:01
upperdeck left06:01
upperdeck joined06:02
schooner left06:05
re1 left06:06
solaris joined06:07
shaowei left06:07
shaowei joined06:08
schooner joined06:08
dimi1947 left06:10
matoro left06:11
matoro joined06:11
rajat joined06:16
solaris left06:17
akushner joined06:17
bkxd left06:18
solaris joined06:19
LocaMocha joined06:20
menip left06:22
goweol1 joined06:23
goweol left06:24
madewokherd left06:25
konsolebox left06:25
konsolebox joined06:27
goweol1 left06:28
solaris left06:28
rajat left06:29
McKrakenMcKraken_zzzzz06:31
ogny joined06:31
pirocks joined06:33
goweol joined06:35
KeyJoo joined06:36
goweol left06:37
naiveai joined06:37
goweol joined06:37
Wetmelon left06:38
bedouin joined06:38
Bin4ry left06:40
oojacoboo joined06:40
goweol left06:42
t0adst00l joined06:44
ahrs left06:47
ahrs joined06:48
goweol joined06:48
ilyaigpetrov joined06:50
re1 joined06:50
re1 left06:51
t0adst00l left06:52
re1 joined06:52
bkxd joined06:52
meesles joined06:53
bkxd left06:53
bkxd joined06:54
bedouinmegeve06:54
bkxd left06:54
dimi1947 joined06:55
pirocks left06:55
dimi1947 left06:56
Murr left06:57
Murr joined06:57
dimi1947 joined06:57
shaowei left06:58
wxg joined07:02
awkwardpenguin left07:03
awkwardpenguin joined07:04
bkxd joined07:05
solaris joined07:06
tango_ left07:06
t0adst00l joined07:07
goweol left07:07
yohnnyjoe joined07:08
tango_ joined07:09
awkwardpenguin left07:09
dave0x6d left07:09
Arcaelyx left07:10
bkxd left07:10
goweol joined07:13
yohnnyjoe left07:13
nidr0x left07:13
g00s left07:14
Copenhagen_Bram left07:15
dec0n joined07:19
Cabanossi left07:26
wxg left07:27
shaowei joined07:28
Cabanossi joined07:28
schleppel joined07:29
Wetmelon joined07:31
Silmarilion joined07:31
schooner left07:34
tkore joined07:35
solaris left07:38
elsevero joined07:41
abba joined07:41
elsevero left07:42
bkxd joined07:42
FoxRocks left07:44
marian1235813 joined07:45
ok91 joined07:48
moei left07:48
ppang joined07:48
MACscr joined07:49
almighty joined07:52
neil_cn left07:52
ok91 left07:53
duderono_ joined07:53
almighty left07:53
duderonomy left07:53
hash-z3r0 left07:54
dave0x6d joined07:57
chaosruler joined07:58
t0adst00l left08:00
akkuvijay joined08:00
howdoi left08:00
t0adst00l joined08:01
Copenhagen_Bram joined08:02
hash-z3r0 joined08:03
Copenhagen_Bram left08:04
mdk left08:04
xcm joined08:04
MoziM_ left08:05
akkuvijay left08:06
sz0 joined08:06
dviola joined08:07
hash-z3r0 left08:10
Copenhagen_Bram joined08:10
hash-z3r0 joined08:17
JoshuaD joined08:18
mooasaurus left08:19
mooasaurus joined08:19
iamyask left08:19
CheckDavid joined08:19
robattil1 left08:26
robattila256 joined08:26
exotime left08:28
hash-z3r0 left08:28
exotime joined08:29
hash-z3r0 joined08:31
wxg joined08:31
iamyask joined08:32
ma5ter joined08:32
fatalhalt left08:33
ma5ter left08:33
meesles left08:34
rts-sander joined08:36
rts-sander hey how to have the git commit hash inside a comment of the commit itself?08:37
grawity you don't08:37
it's mathematically damn-near-impossible08:37
discopatrick joined08:37
_ikke_ grawity: There is this gif that shows it's own MD5 hash :P08:38
masuberu joined08:38
t0adst00l left08:38
_ikke_ rts-sander: To elaborate: that commit hash is based on the contents of the commit, including the commit message08:38
rts-sander ah thought it would be cool but I guess it isn't easy08:38
_ikke_ rts-sander: If you add the hash to the commit message, the hash would be different, invalidating the hash you added08:39
rts-sander yes so putting the commit hash in the code will change the commit hash08:39
_ikke_ yes08:39
grawity "fixed point" looks like a relevant term08:40
https://stackoverflow.com/questions/235785/is-there-an-md5-fixed-point-where-md5x-x08:40
probably much easier with MD508:40
_ADN_ joined08:41
cdown joined08:42
mdk joined08:42
cqi left08:43
_ikke_ grawity: I'm not sure if it's a fixed point08:43
grawity: because md5(x) == x is more narrow08:43
grawity yeah, it's not, since there's a lot of gif junk (or git junk) in the input08:44
_ikke_ grawity: http://www.rogdham.net/2017/03/12/gif-md5-hashquine.en08:44
Section 3 shows it08:44
https://shells.aachen.ccc.de/~spq/md5.gif08:45
Bucciarati joined08:47
safe left08:48
chaosruler left08:48
chaosruler joined08:49
xennn left08:49
wxg left08:51
kadoban left08:53
t0adst00l joined08:54
overlord_tm joined08:56
DevAntoine joined08:58
czart joined09:00
hash-z3r0 left09:00
xcm left09:01
duderono_ left09:02
hash-z3r0 joined09:04
xcm joined09:05
tkore\work joined09:05
dimi1947 left09:05
coumbole joined09:06
awkwardpenguin joined09:06
hash-z3r0 left09:06
shaowei left09:06
duderonomy joined09:06
cdown left09:07
bbear joined09:07
bbear hello09:07
chaosruler left09:07
chaosruler joined09:08
oxymoron93 joined09:08
igemnace o/09:09
yohnnyjoe joined09:09
tkore left09:09
awkwardpenguin left09:10
cdown joined09:11
t0adst00l left09:13
yohnnyjoe left09:13
duderonomy left09:14
imack left09:14
drewmcmillan joined09:15
duderonomy joined09:16
_ikke_ ohai09:17
drewmcmillan left09:18
zefferno left09:19
Repox joined09:19
zefferno joined09:20
hash-z3r0 joined09:20
Darcidride joined09:20
hash-z3r0 left09:21
cdown left09:23
abba_ joined09:25
wxg joined09:26
Lyqyd joined09:27
Floflobel joined09:27
cdown joined09:27
houami left09:31
masuberu left09:33
mar77i joined09:33
d-fence_ left09:34
d-fence joined09:36
imack joined09:38
LichtMacher left09:39
raijin left09:40
kozy I mistakenly amend previous commit, how can I split commit? any idea?09:40
ceda joined09:40
ceda left09:41
oxymoron93 git reset HEAD~ kozy09:41
_ikke_ No09:41
git reset HEAD@{1}09:41
The former will just reset the commit, you have to redo both commits09:41
kozy very unfortunately previous commit also edit same file09:41
ok91 joined09:41
kozy correct anser THX!!!! _ikke_!!!!09:42
Impaloo left09:42
Impaloo joined09:43
LichtMacher joined09:43
Lyqyd left09:44
wxg left09:45
lyxus left09:46
serialoverflow left09:46
serialoverflow joined09:52
pbrewczynski joined09:52
StOBlind joined09:54
StOBlind left09:55
StOBlind joined09:56
ppang left09:56
drewmcmillan joined09:58
energizer left09:58
igemnace left10:06
manuelschneid3r joined10:07
megeve left10:07
goweol left10:07
dave0x6d left10:09
igemnace joined10:10
chaosruler left10:13
chaosruler joined10:14
chaosruler left10:20
chaosruler joined10:20
staafl_ joined10:25
staafl left10:26
shripadr_ left10:27
regedit left10:30
thiago joined10:32
a3Dman left10:34
MarioBranco joined10:34
imack left10:35
a3Dman joined10:37
jleclanche left10:37
jleclanche joined10:38
SteffanW joined10:39
imack joined10:41
Claw_wolf joined10:41
TomyLobo joined10:42
zefferno left10:44
vush left10:47
iamyask left10:49
a3Dman left10:50
LichtMacher left10:50
_ADN_ left10:50
chaosruler left10:51
chaosruler joined10:52
exotime left10:57
exotime joined10:58
jleclanche left10:58
IanLiu joined11:00
marcelofr joined11:01
xaa joined11:02
yohnnyjoe joined11:10
tvw joined11:11
tvw left11:12
tvw joined11:12
yohnnyjoe left11:15
BSaboia joined11:15
Kaisyu7 left11:18
dviola left11:18
ok91 left11:20
xD3C joined11:21
gyorb joined11:21
exotime left11:30
exotime joined11:31
TheTachyon joined11:35
TheTachyon what would be the causes of git not being able to create a directory ? I'm trying to add a submodule to a private repo and it complains11:36
https://gist.github.com/xTachyon/7311f033d57f08f7ea7e82f0091ce4ee (ignore the folder name, it's just a test and I screwed it up a little)11:37
tvw left11:37
TheTachyon nvm11:39
I screwed it up big11:39
jimmyrcom left11:39
TheTachyon the syntax is submodule add url folder, but I was putting folder url11:39
chaosruler left11:40
chaosruler joined11:40
houami joined11:43
wandering_vagran joined11:45
cbreak left11:46
moei joined11:49
cur8or joined11:49
xD3C left11:51
a3Dman joined11:52
bluepixel left11:54
sz0 left11:57
MarioBranco left12:01
cbreak joined12:03
beerdrop left12:04
masuberu joined12:06
LichtMacher joined12:07
nanga left12:08
shripadr joined12:09
nanga joined12:11
manuelschneid3r left12:12
raynold left12:15
mrBen2k2k2k left12:16
bergice_ left12:17
Gurkenglas joined12:21
BSab joined12:31
houami left12:34
BSaboia left12:36
pylove joined12:36
beerdrop joined12:40
ogny left12:40
cdown left12:42
xD3C joined12:45
CheckDavid left12:48
wxg joined12:48
Repox left12:52
katiex7 left12:54
m0viefreak joined12:57
sunri5e left12:58
sunri5e joined12:59
bkxd left13:01
schooner joined13:07
Ionic left13:07
shinnya joined13:08
awkwardpenguin joined13:09
eduardas_m joined13:10
yohnnyjoe joined13:11
jcapinc joined13:13
Tobbi joined13:13
awkwardpenguin left13:14
yohnnyjoe left13:15
manuelschneid3r joined13:16
Phylock joined13:19
mrBen2k2k2k joined13:19
sim590 left13:23
sim590 joined13:25
Gustavo6046 joined13:27
naiveai left13:31
checkItOut_ joined13:37
fission6 joined13:39
jcapinc left13:43
coumbole left13:45
metts joined13:54
ok91 joined13:55
jnavila joined13:56
xD3C left13:57
Es0teric joined13:57
gxt left13:59
Amanas joined14:01
gxt joined14:01
phluks joined14:04
zarzar joined14:08
MeiR` joined14:08
MeiR left14:09
chrysa left14:10
guideline joined14:11
Impaloo left14:13
Impaloo joined14:13
wandering_vagran left14:17
ok91 left14:21
chaosruler left14:23
Es0teric left14:28
xxMatiasxx joined14:29
Es0teric joined14:30
MarioBranco joined14:31
jokajak left14:35
xaa left14:39
McKraken_zzzzzMcKraken14:43
overlord_tm left14:44
sammyo joined14:45
jokajak joined14:47
PioneerAxon joined14:47
TheTachyon left14:48
PioneerAxon left14:48
TheTachyon joined14:48
PioneerAxon joined14:48
PioneerAxon left14:49
cdown joined14:49
PioneerAxon joined14:49
PioneerAxon left14:49
boutcher joined14:50
PioneerAxon joined14:50
PioneerAxon left14:50
PioneerAxon joined14:50
sammyo left14:53
pylove left14:54
shinnya left14:56
imack left14:57
Murr left14:57
Murr joined14:57
cdown left15:02
xxMatiasxx left15:03
cur8or left15:05
menip joined15:05
xxMatiasxx joined15:06
xxMatiasxx left15:06
Gurkenglas left15:08
esc left15:09
esc joined15:10
Aash left15:11
yohnnyjoe joined15:12
wxg left15:13
BSabo joined15:13
oxymoron93 left15:14
cdown joined15:14
yohnnyjoe left15:16
BSab left15:17
rkta left15:23
wxg joined15:24
abba left15:26
ResidentBiscuit joined15:27
rkta joined15:28
coumbole joined15:28
linuxmodder joined15:28
abba_ left15:30
VoradorPT joined15:31
jnavila left15:35
KeyJoo left15:37
cdg joined15:37
coumbole left15:38
jnavila joined15:38
coumbole joined15:38
rkta left15:38
PioneerAxon left15:40
imack joined15:41
masuberu left15:41
imack left15:41
rkta joined15:44
PioneerAxon joined15:45
wandering_vagran joined15:46
imack joined15:46
wxg left15:47
Arcaelyx joined15:49
menip left15:49
schooner left15:50
coumbole left15:52
eshlox joined15:53
tvw joined15:55
imack left15:55
schooner joined15:56
db8093246 joined15:56
Praxi joined15:56
linuxmodder- joined15:57
linuxmodder- left15:57
linuxmodder- joined15:57
dec0n left15:58
linuxmodder- left15:59
linuxmodder- joined15:59
Byteflux joined16:00
linuxmodder- left16:00
_ADN_ joined16:00
linuxmodder left16:00
linuxmodder- joined16:01
linuxmodder- left16:01
linuxmodder- joined16:01
linuxmodder- left16:01
StOBlind left16:06
cdown left16:06
checkItOut_ left16:07
gyorb left16:07
gyorb joined16:09
tvw left16:09
tkore\work left16:13
unreal joined16:13
enkrypt left16:14
BSab joined16:16
cdown joined16:16
pkx2 joined16:17
Byteflux left16:17
TheTachyon left16:17
_ADN_ left16:19
houami joined16:19
BSabo left16:20
xcm left16:20
xcm joined16:21
imack joined16:22
clickjack left16:23
ghost43 left16:25
clickjack joined16:26
eduardas_m left16:27
enkrypt joined16:28
ghost43 joined16:28
pkx2 left16:31
cdown left16:32
Tobbi left16:33
Puffball_ joined16:34
Tobbi joined16:34
Puffball left16:34
Es0teric left16:35
marcelofr left16:36
duckydan left16:36
kadoban joined16:37
menip joined16:38
skinux joined16:39
skinux This is probably a dumb question, but it there any way to make git verify which branch is intended when doing a commit?16:39
_ikke_ skinux: verify in what way?16:39
skinux: How would git know what branch was intended?16:40
skinux Like, ask for key input confirmation that it's being commited to the right branch.16:40
vampire_vorador joined16:40
skinux Well, whichever was checked out last or whatever.16:40
_ikke_ skinux: Is it that big of an issue?16:40
skinux For me it could be, I've lost a ton of changes before by committing/pushing to the wrong branch.16:41
So, if not, I'm gonna have to create another git repo16:41
vampire_vorador left16:41
madewokherd joined16:41
kadoban skinux: That kind of thing doesn't tend to actually save you any mistakes. You'll just get used to hitting 'y' immediately every time.16:41
skinux Hmm.16:42
I don't do commits/pushes that often.16:42
I mean, it's not necessary that often for me.16:42
_ikke_ skinux: How do you loose changes that way?16:42
menip left16:43
skinux For example, I'm considering trying Vue for a project. However, I don't want to over-write React branch by mistake.16:43
_ikke_ skinux: When just pushing, you never overwrite a branch16:43
kadoban skinux: Sure, but at worst after you realize you commited to the wrong branch, you can just cherry-pick the changes onto the correct one and revert it (or change history) on the "wrong" branch.16:44
skinux Oh, shit duh. I just need to learn how to revert.16:44
VoradorPT left16:45
skinux Thank you.16:45
skinux left16:45
xD3C joined16:45
tac-tics joined16:46
VoradorPT joined16:48
xxMatiasxx joined16:49
cdown joined16:50
db8093246 left16:51
throstur does anyone here know how I can add a deploy key to an entire group in Gitlab? Instead of per-project?16:53
pkx2 joined16:54
overlord_tm joined16:55
Es0teric joined16:55
cdg left16:56
houami left16:56
Es0teric left17:01
Silmarilion left17:01
noobineer joined17:02
noobineer left17:02
noobineer joined17:03
noobineer left17:03
houami joined17:03
noobineer joined17:03
leah2 left17:05
duckydan joined17:06
cdg joined17:06
dave0x6d joined17:07
xxMatiasxx left17:07
xxMatiasxx joined17:08
cdg left17:10
invisbl joined17:11
xxMatiasxx left17:12
imack left17:12
yohnnyjoe joined17:13
akushner left17:13
ShapeShifter499 left17:13
shripadr left17:14
solaris joined17:14
leah2 joined17:15
xxMatiasxx joined17:15
cdg joined17:17
yohnnyjoe left17:17
orbyt_ joined17:20
ResidentBiscuit #gitlab17:21
cdg left17:22
Darcidride_ joined17:22
meesles joined17:23
xxMatiasxx left17:25
xxMatiasxx joined17:25
cdg joined17:26
qqx left17:26
qqx joined17:26
SteffanW left17:27
oxymoron93 joined17:28
xxMatiasxx left17:28
bluepixel joined17:28
xxMatiasxx joined17:28
ResidentBiscuit left17:28
planigan left17:30
cdg left17:30
cdg joined17:30
cdg_ joined17:30
xxMatiasxx left17:30
xxMatiasxx joined17:31
tunekey left17:31
planigan joined17:31
lagothri1 left17:32
cdg left17:34
Cavallari joined17:34
noobineer left17:35
xxMatiasxx left17:35
xxMatiasxx joined17:35
solaris left17:38
BSabo joined17:40
houami left17:42
BSab left17:43
Kaisyu left17:44
_ADN_ joined17:44
Es0teric joined17:44
BSab joined17:46
Claw_wolf left17:46
BSab left17:46
BSabo left17:47
xxMatiasxx left17:47
BSab joined17:48
akushner joined17:48
akushner left17:49
akushner joined17:49
[ADN] joined17:50
BSab left17:53
_ADN_ left17:54
mdugas joined17:54
lagothri1 joined17:55
diogenese left17:56
neunon left17:56
LichtMacher left17:58
abhishekr700 joined17:59
oxymoron93 left18:00
abhishekr700 hi18:01
can we use GitHub gist to write small guides?18:01
neunon joined18:01
houami joined18:03
houami left18:08
Floflobel left18:14
MarioBranco left18:15
KeyJoo joined18:16
raynold joined18:18
cdown left18:19
houami joined18:19
notnull joined18:20
[ADN] left18:20
Lyqyd joined18:22
houami left18:23
brainpro1brainproxy18:26
ResidentBiscuit joined18:26
oprypin abhishekr700, yes. #github18:27
overlord_tm left18:29
Tobbi left18:29
dviola joined18:29
Tobbi joined18:31
zarzar left18:32
Copenhagen_Bram left18:32
beerdrop left18:34
houami joined18:34
Copenhagen_Bram joined18:38
HElephant joined18:38
Darcidride left18:38
houami left18:39
ARoxdale joined18:40
xeno left18:40
phluks left18:42
ARoxdale I'd like to merge a very old branch while retaining the old branches history. I previously made a very messy commit in which the old branch was "merged", but using "git reset --hard" and this appears to have delted the old branch history completely.18:43
Is there any way of merging the head of the old branch in such a way that it will now point to this new commit while still remembering its own history?18:43
(I still have the old branch history as the merging was done on a temp branch) (This is my current story after some recovery)18:44
madewokherd you don't want any changes from the old branch, just the history?18:44
ARoxdale I think that is what I want. I'm not sure if this is possible.18:45
madewokherd git merge --strategy=ours18:45
ARoxdale My understanding is that git reset --hard makes the branch forget anything it knew previously and just points it to a totally new commit with its own history18:45
oprypin pretty much18:46
ARoxdale So I would: "git checkout newerbranch; git merge --strategy=ours olderbranch;"18:46
madewokherd yep18:47
nd_ joined18:47
j416 ARoxdale: a branch is a pointer to a commit. git-reset merely moves that pointer, with optional side-effects.18:47
because left18:47
beerdrop joined18:47
ARoxdale j416: I did some reading on that. I get it up to a point. But the process by which the history of a commit or a branch is recorded is opaque to me.18:48
because joined18:48
j416 each commit has a reference to its parent commit(s).18:49
nd left18:49
oprypin and branch is just a reference to a commit18:49
j416 so a reference to a single commit is enough to get all commits leading up to that one.18:49
ARoxdale So a merge will create a new commit regardless?18:50
j416 maybe.18:50
houami joined18:50
ARoxdale As in, I am merging at a point which is not the current head of the newer branch.18:50
j416 if it creates a commit, that commit will be a regular commit except with two parent commits.18:50
ARoxdale I mean, that is what I'm trying to do.18:51
j416 if the history is linear, i.e. not diverged, the merge (unless --no-ff is given) will simply be a reset to the tipnof the branch being merged, a so-called fast-forward merge.18:51
s/tipnof/tip of/18:52
boombatower joined18:52
j416 sorry, I’m on a phone keyboard18:52
ARoxdale And if it's not linear?18:52
LichtMacher joined18:52
j416 then there will be a commit18:52
that records the result of the merge18:52
because left18:52
ARoxdale How do you then reintegrate a commit like that into a linear history which started at the newer branch head. I mean I have made (linear edits AFTER the point at which I wish to merge. How do I integrate the newer commit into this?18:54
houami left18:54
ARoxdale The merge commit is like a grass blade at the bottom of a pole of commits.18:55
al-damiri joined18:55
j416 has your history diverged?18:55
ARoxdale Could I just merge it with the branch at the top of the pole? (Sorry, I'm not clear on the proper git terminology)18:55
The history did not diverge from the point at which I wish to merge the old branch into. ... Let me try to come up with some proper names.18:56
I have a very old (> 6 month) branch "oldbranch"18:56
I created a new branch "newbranch" about 2 weeks ago and "git --reset" oldbranch to point to it.18:57
I later made edits to the newbranch.18:58
But the reset seems to have left newbranch with no idea of oldbranches history.18:58
because joined18:58
ARoxdale (oldbranch and newbranch actually had the same name when I originally did this)18:58
I'd like to create a proper history in the git log. As in, I want to properly merge (not reset) oldbranch into this newbranch.18:59
At the original point I made the manual insertion.19:00
raffo joined19:00
ARoxdale right now, I have a branch "mergepoint" whose head points to the commit at which I made the (git --reset) merge19:00
If I merge "oldbranch" into "mergepoint", can I then reintegrate the resulting commit into the linear history between "mergepoint" and "newbranch"?19:01
j416 I’m not quite following, sorry19:02
draw an example?19:02
also, !backup19:02
gitinfo Worried about your data while trying stuff out in your repo? The repository in its entirety lives inside the .git directory in the root of your work tree so to backup everything `cp -a path/to/workdir path/to/backup` or equivalent will suffice as long as the repo is not modified during backup. See also http://sethrobertson.github.com/GitBestPractices/#backups19:02
fatalhalt joined19:02
meesles left19:02
ARoxdale j416: How do I draw one and post it here?19:03
ghost43 left19:03
frederfred joined19:04
j416 draw an image, post a link?19:05
or draw ascii art arrows, post a link19:05
houami joined19:05
j416 sorry for the hassle, just seems an image would explain this much easier19:06
dp joined19:07
ghost43 joined19:08
wandering_vagran left19:08
dp Is there a way for "git diff" to only show me the difference between the files, and not show me the "--- a/current.txt +++ b/current.txt" portions (without resorting to piping to grep, etc) ?19:08
j416 dp: --name-only or --stat19:09
oh, sorry, I think I misinterpreted that.19:10
houami left19:10
jrm Does `git svn dcommit` read .subversion/config? I don't see anything in the git-svn man page, but I just did a dcommit to an svn repo and I'm not sure how the svn properties were set.19:10
j416 dp: then it would be an incomplete diff — I doubt git will produce such a diff19:10
dp j416: possibly; I just want to see the changes without any status information.19:11
ARoxdale j416: https://gitirc.eu19:11
umm19:11
j416 what for?19:11
@dp19:11
ARoxdale j416: http://pastebin.com/PRHkPC5C19:12
dp j416: I'm trying to display a change for a single file, in a way that someone who doesn't care about the rest of that information would use it.19:12
ResidentBiscuit A gui diff viewer might be better19:12
j416 dp: hm. I would just give the diff as-is.19:13
yohnnyjoe joined19:13
dp --no-prefix does part of the work, but that only removes the "a/ b/" portions. I really just want no headers at all.19:13
j416 ARoxdale: so you want to change the history so that oldbranch was merged in earlier?19:14
ARoxdale Yes19:15
dp j416: this will never be used for a patch or anything else. It is literally only to show the difference between the file and it's previous version. I guess I'm gonna have to go the grep route.19:15
SteffanW joined19:15
invisbl left19:15
j416 ARoxdale: possible of course, but you would have all commits after the mege point rewritten, and anyone with the current version of newbranch would have to rebase. Is that ok?19:16
mege -> merge*19:16
dimi1947 joined19:17
exotime left19:18
exotime joined19:18
yohnnyjoe left19:18
xPucTu4 left19:19
raffo left19:19
endiruna joined19:21
houami joined19:21
xPucTu4 joined19:21
j416 ARoxdale: there are faster ways, but perhaps this is a pedagogical one: Create a branch pointing to the commit on newbranch into which you want fo merge oldbranch (git checkout -b branch-x <commit>). Merge oldbranch into this branch, fix the commit message to say the correct branch name.19:22
raffo joined19:22
j416 check out newbranch and rebase it on branch-x. Fix any conflicts and make sure things still look good.19:22
Darcidride_ left19:22
j416 remove branch-x.19:22
cdown joined19:23
j416 if newbranch exists on some remote, push. Since tvis alters history, you need to force push (git push --force). Be aware of the consequences if you do.19:24
ARoxdale: simple as cake?19:24
houami left19:26
ARoxdale j416: It sounds reasonable. But the history of newbranch (since the merge) is itself deleted?19:26
j416 Define deleted19:26
ARoxdale newbranch will not remember the commits made since the merge, though it will have the changes.19:27
It won't have a proper historical graph19:27
cdg_ left19:28
j416 what do you mean by proper?19:28
it will look as in you example, ”step 1”.19:28
your*19:28
dp left19:28
ARoxdale It will? I propbably don't understand rebasing then. I thought rebasing was like a reset?19:29
ghost43 left19:29
ghost43 joined19:29
j416 take a backup, then try and see19:29
endiruna left19:30
ARoxdale Oh. Rebasing is like pruning and regrafting on a different commit?19:30
LocaMocha left19:30
ARoxdale I will try this19:30
j416 be careful though, the result of a rebase always needs to be checked for semantic conflicts.19:31
ARoxdale semantic conflicts?19:31
sanscoeur joined19:31
ARoxdale As in, what is semantic?19:31
tags and such?19:32
j416 prune and graft means something else in git terminology, but if I understand you correctly, then yes.19:32
do you know what a merge conflict looks like?19:32
ARoxdale To be honest, all I know is that it inserts the "<<<<<<<<" and ">>>>>>>" markers everywhere and breaks visual studio until the merge is aborted. I thinki i've fixed a conflict once or twice. But since the merge used "--ours", surely the rebase won't give rise to any issues?19:34
j416 that is a syntactic conflict. Semantic conflicts can still exist even though git thought a merge (or rebase) went well. Syntactically everything may check out fine, ut semantically things may have changed, causing compilation errors or other more subtle errors.19:34
paul424 joined19:34
j416 be sure to check, anyway.19:34
doesn’t hurt.19:34
ARoxdale I'll make new branch points and diff the results.19:35
branches19:35
j416 I make it a habit to inspect every single commit after rebasing, and I run the test suite on each commit.19:35
ARoxdale make new branches. Placeholders.19:35
j416 Rebase is handy, but needs caution.19:35
perhaps in your case it’ll be fine. But the more reason to check then — it’ll be a very quick check.19:36
houami joined19:36
endiruna joined19:37
xxMatiasxx joined19:37
Cavallari left19:38
ARoxdale OK. I ran the first merge. A new commit was created and branch "mergepoint" now points to it. But "oldbranch" is still pointing to where it was.19:38
j416 just reset that to newbranch19:38
ARoxdale Because mergepoint is remembering the history?19:39
Commits/whatever19:39
j416 mergepoint is a commit19:39
it knows its parents.19:39
ARoxdale It's a branch actually. Sorry about the confusion. I'm using that as a temporary branch19:39
I though merge made both branches end up pointing to the same commit?19:40
Oh. It doesn't. Never mind.19:41
(git is very confusing)19:41
I will try the rebase now.19:41
j416 Merge only affects the branch you are currently on.19:41
ARoxdale (after I make placeholder branches)19:41
houami left19:42
j416 This is the default in most git commands.19:42
ARoxdale So you need to do a merge from the old branch to really get them to point to the same commit?19:42
Es0teric left19:42
ARoxdale This is an aside question, but how would you get them to both point to the same commit?19:42
Es0teric joined19:42
j416 I told you above.19:43
ARoxdale No, I mean for a very generic merge. Not in this case. Just in general. Is there a "proper" way to do it, or should you not actually bother?19:43
drewmcmillan left19:44
Mike11 joined19:45
cdown left19:45
discopatrick left19:46
bergice_ joined19:47
ARoxdale Considering the awkwardness of a rebase, should I just merge the current merge into the head of newbranch? I take it that newbranch will then "remember" the oldbranch commits somewhere far down in its history?19:48
j416 depends on what result you want ¯\_(ツ)_/¯19:49
ARoxdale I really just want the commits to appear in roughly chronological order19:50
When you run "git log newbranch"19:51
At the moment, that log doesn't contain anything on oldbranch19:51
ResidentBiscuit Merging gives you the "truest" history. Though it's going to lead to a history riddled with merge commits. The approach I've used at every job has been to rebase dev branches onto master/whatever branches while working to pull in the latest changes, then merge when from dev branches into master when done19:51
houami joined19:52
schleppel left19:53
ARoxdale It's a "true" history I suppose, but only of git merging screwups.19:54
Lyqyd left19:54
ResidentBiscuit I don't think there's any way to interleave commits from different branches in such a way that they appear in chronological order19:55
At least not easily19:55
ARoxdale What way do commits appear in the log? When you get down to a commit with two parents, which backbranch gets displayed?19:56
npgm joined19:56
houami left19:56
cdg joined19:57
endiruna left19:57
energizer joined19:57
ARoxdale I'll just merge. I've already pushed the history I'm trying to rebase anyway. Really the main thing is to integrate the oldbranch history properly.19:58
Really just integrate it at all.19:58
ResidentBiscuit What is "proper"?19:59
ARoxdale (Really I just need to call time on this, and leave it in the annals as a question for git technical interviews)19:59
ResidentBiscuit I missed most of the beginning of this conversation so I don't know what exactly you're after19:59
ARoxdale ResidentBiscuit: I am not fully sure, but certainly one factor is that the commits in oldbranch should appear somewhere in the git log of the newbranch.20:00
Hang on20:00
ResidentBiscuit: : http://pastebin.com/PRHkPC5C20:00
ResidentBiscuit `git checkout oldbranch; git rebase newbranch; git checkout new branch; git merge oldbranch`20:00
ilyaigpetrov left20:00
xcm left20:03
xcm joined20:04
ResidentBiscuit https://pastebin.com/RQenwcrn Is this not ok?20:04
katiex7 joined20:04
sanscoeu_ joined20:05
ARoxdale ResidentBiscuit: ....No. The mergepoint was a very manual edit which required additional changes to the newbranch("master" branch). The oldbranch edits can't be applied after the mergepoint.20:05
raijin joined20:05
Enphuego joined20:06
ResidentBiscuit This makes no sense. Why does old branch need to be merged right there? According to this diagram, it has no relationship to any of these commits.20:06
Can newbranch be messed with at will?20:07
houami joined20:07
sanscoeur left20:08
sanscoeu_ left20:08
fstd_ joined20:08
sanscoeur joined20:08
ARoxdale On the git log, oldbranch indeed has no realtionship. But facturally that is incorrect. The mergepoint was a manual integration of the oldbranch changes into the newbranch. It was manual because the dealing with merge conflicts was too big a step for me at the time. (I'm working on visual studio, and effectively it hates git)20:09
ResidentBiscuit Oh, so you've purposefully gimped yourself. Someday people will learn that the git cli is not some scary beast. Every git issue I've ever dealt with has been the cause of GUIs.20:10
What exactly is mergepoint then?20:10
Have all the changes from oldbranch been integrated at that point?20:10
Shah1 joined20:11
ResidentBiscuit Just manually, so no git log to keep track of it20:11
fstd left20:11
fstd_fstd20:11
Forlorn joined20:12
houami left20:12
Forlorn Hi, is it possible to change the root repository directory for git-shell via ssh?20:12
rkta left20:12
Forlorn git clone git@server:test.git , should clone from /home/git/repositories/test.git and not /home/git/test.git.20:13
eikhorst joined20:14
pirocks joined20:15
rkta joined20:15
Forlorn the server's user named git is setup with git-shell, and has two directories in its home dir, namely repositories and git-shell-commands.20:15
I have migrated from gitolite to plain git-server20:16
ResidentBiscuit ARoxdale: https://pastebin.com/UuGWxBy7 ?20:16
bremner Forlorn: why?20:16
Forlorn bremner, to what?20:17
bremner the migration, out of curiousity20:17
jokajak left20:17
eikhorst left20:17
Forlorn bremner, more control20:17
db8093246 joined20:17
Gustavo6046 left20:18
ARoxdale ResidentBiscuit: It was a very old branch. It was branched off master at an older commit. The edits were a brand new directory in the codebase mostly, but it was using the older code directories for the most part, with a few alterations. There were hundreds of merge conflicts. I made an executive decision at the time.20:18
ResidentBiscuit Then why do you even care about the commit history of that branch?20:18
Forlorn bremner, now I can simply do: `ssh git@server init new_repo_name`, or `ssh git@server init fork new_repo_name fork_of_repo_name`.20:18
ARoxdale (which I now (somewheat) regret)20:19
ResidentBiscuit If you're going to manual merge, you've decided that you don't want git to keep track of the changes20:19
Forlorn bremner, s/init fork/fork/20:19
Copenhagen_Bram left20:19
ARoxdale Because I thought at the time that you could remerge or rebase or something.20:19
Actually at the time I didn't really care about the commit history, but now it's something which is bothering me.20:20
git merging is not easy.20:20
ResidentBiscuit No merging is ever easy when you wait months to do it and resctructure the code20:20
ARoxdale Also I use the command line exclusively.20:20
tac-tics left20:21
nanga left20:21
j416 it actually is simple.20:21
ARoxdale ResidentBiscuit: That was literally the way the old branch had to be done.20:21
It was originally based off a 3+ year old commit.20:21
ResidentBiscuit That is the issue20:21
You should never have 3 year old branches sitting around that you expect to merge20:22
In any vcs20:22
j416 the issue is that you are trhing to save time by taking shortcuts to learning. Then you spend many times more time trying to fix issues along the way.20:22
ARoxdale The branch is only six months old. The commit was 3 years old. But that was the only place the feature could be developed on.20:22
jokajak joined20:22
Copenhagen_Bram joined20:22
j416 spend two full really learning git, if you plan to use it daily. time well spent. I promise.20:22
er, two full days*20:23
nanga joined20:23
nanga left20:23
nanga joined20:23
ResidentBiscuit https://git-scm.com/book/en/v2 Read the first three chapters20:23
ARoxdale Surely this is a fairly common occurance. An atrophied feature branch needing to be reintegrated into an updated master branch or something20:23
j416 phone kbd not optimal20:23
ResidentBiscuit Covers everything you need to know day to day20:23
ARoxdale j416: Any good tips for learnign rresources?20:23
ResidentBiscuit: Thanks20:23
j416 ARoxdale: what ResidentBiscuit linked is good.20:23
ResidentBiscuit If I ever come across a branch that's been sitting around for months and it needs to be reintegrated, I expect a lot of work to make that happen20:24
That's why I reintegrate often20:24
drewmcmillan joined20:24
ARoxdale It's a distributed project.20:24
ResidentBiscuit Meaning what?20:25
j416 if you are a video kind of person, look for "git happens" by Jessica Kerr. There are at least two. Pick the one where she uses post-its. Apartfrom when she says each commit is represented as a patch (or something like this), it is a great intro video.20:25
ARoxdale ResidentBiscuit: Lots of people work on in, on the projects its based on, on and off, coming and going.20:26
ResidentBiscuit So, totally normal development?20:27
Shah1 left20:27
ResidentBiscuit Doesn't mean you can't reintegrate often. The start to my day everyday is rebase my code onto whatever branch I'm based on20:27
ARoxdale The component I was working into the project is 20 years old.20:28
j416 ^ this I do several times per day. Sometimes several timrs per hour, depending on the project.20:28
ResidentBiscuit I don't understand how age of the project matters. I've worked on stuff that age and older20:28
aielima joined20:29
mdugas left20:32
Shah2 joined20:34
hdon left20:34
fission6 left20:34
hdon joined20:34
ARoxdale I could only integrate it in at the time at an older commit of the master branch. No-one else was able to get the then current head to compile. It's a very, very long story. It involves Visual Studio, makefile scripts, submodules, server issues, debug builds, and a hard disc failure at one point. It suffices to say that it was required to reintegrate a very "old" branch back into the master branch recently, and20:36
the task of doing this was made much easier by not involving version control intitially. I know that sounds foolish, but version control doesn't really "agree" with the kind of merge I was doing. Probably if I knew a lot more git, but here I am. I'll do the merge instead of the rebase. It still allows people to figure out what went on.20:36
skylite left20:36
skylite joined20:38
houami joined20:39
ARoxdale When I merged the merge, git reported "Already up to date!" "Merge made by the 'recursive' strategy". Is this likely to be good or bad?20:40
azerus left20:41
paul424 left20:42
houami left20:43
raffo left20:43
azerus joined20:45
czart left20:46
tac-tics joined20:48
pirocks left20:50
aielima left20:51
ZyX-I joined20:51
aielima joined20:51
discopatrick joined20:54
houami joined20:54
concerti joined20:55
raffo joined20:56
jimmyrcom joined20:59
houami left20:59
akushner left21:04
SteffanW left21:04
cdown joined21:05
pirocks joined21:07
houami joined21:10
houami left21:14
yohnnyjoe joined21:14
manuelschneid3r left21:16
j416 ARoxdale: check log.21:17
orbyt_ left21:18
yohnnyjoe left21:19
bkxd joined21:19
henriquev joined21:21
xeno joined21:24
houami joined21:25
exotime left21:26
dimi1947 left21:26
schooner left21:26
exotime joined21:26
ARoxdale j416: It behaves more or less as expected. The git gui graph is not what I'd prefer, but that's not an essential issue right now.21:26
j416 how is it wrong?21:27
M6HZ left21:27
M6HZ joined21:28
manuelschneid3r joined21:29
BenderRodriguez left21:29
houami left21:30
abhishekr700 left21:32
chaosruler joined21:32
enkrypt left21:34
akushner joined21:35
WhitePhosphorus left21:37
schooner joined21:38
frederfred left21:39
the_f0ster joined21:39
giraffe left21:39
midnightmagic left21:39
blackwell left21:39
cjohnson left21:39
parsnip left21:39
ses1984 left21:39
brainproxy left21:40
cjohnson joined21:40
parsnip joined21:40
houami joined21:41
schooner left21:41
WhitePhosphorus joined21:43
blackwell joined21:43
ses1984 joined21:43
houami left21:45
midnightmagic joined21:45
schooner joined21:46
cdown left21:46
giraffe joined21:47
enkrypt joined21:47
brainproxy joined21:50
xaxxon joined21:54
ARoxdale j416: The graph isn't wrong. It just puts the older commits higher up on the tree. It's not an issue. The git log is in chronological order and hass the older commits.21:54
Tobbi left21:55
metts left21:56
schleppel joined21:56
houami joined21:56
houami left22:01
CheckDavid joined22:02
schooner left22:08
QualityAddict joined22:08
IanLiu_ joined22:10
masuberu joined22:10
j416 ARoxdale: when viewing a flat log, you can choose whether to sort it topologically (--topo-order) or chronologically (--date-order)22:11
jnavila left22:11
houami joined22:12
IanLiu left22:12
IanLiu_IanLiu22:12
Es0teric left22:14
orbyt_ joined22:15
nevodka left22:16
houami left22:16
nevodka joined22:16
fxfitz joined22:20
fxfitz Does anyone know of a way to search the git history of a file to find the revision where that file has a certain hash?22:20
TheWild joined22:21
dege joined22:22
henriquev Say I have a git repository on "/project". Also, a second git repository on "/project/foo". I want to add a file on "/projects/foo/bar/xyz", but I get the error message (check_embedded_repo) about submodules. Is there a way to overcome this and force git to add?22:23
PS: I am abusing git as a transport layer and create/remove my git repository fast. And I am using GIT_DIR. I wouldn't like to copy files to a temporary directory to overcome this issue as it would create others. Is there a way for me to force adding a file even though there is an inner .git on the way?22:23
Copenhagen_Bram left22:26
Praxi left22:26
pirx joined22:26
m0viefreak --no-warn-embedded-repo ?22:26
Gustavo6046 joined22:27
houami joined22:27
henriquev @m0viefreak, the problem is that I need to have the contents of the file commited. Not a reference like "+Subproject commit 862a4d2b1aee49867c4cfb2f1879342510cec48c".22:28
metts joined22:28
mattcen left22:29
houami left22:32
m0viefreak if "foo" is already a submodule, you can't add files in that directory to the outer repo22:32
if "foo" is just another completely independent repo that happens to be located there, adding files to the outer repo will work just fine22:32
lyxus joined22:34
lyxus left22:34
Copenhagen_Bram joined22:35
j416 fxfitz: for rev in $(git rev-list HEAD); do git ls-tree -r $rev | grep -q <blob hash goes here> && git log -1 --oneline $rev; done22:35
maybe.22:35
bkxd left22:35
ixian left22:35
fxfitz j416: nice! I'll give it a shot and adjust as/if needed! Thanks!22:36
j416 \^^/22:36
fxfitz Note: I'm doing this on the linux repo, sooooo tons of history22:36
j416 it should be quite fast22:36
shinnya joined22:37
mattcen joined22:38
m0viefreak if you know the path you could use git log --format %H --follow <path>22:38
instead of just git-rev-list22:39
should be a bit faster22:39
fxfitz Hmm `fatal: ambiguous argument '%H': unknown revision or path not in the working tree.`22:40
thiago left22:40
j416 you need to say --format=%H22:40
I think22:40
fxfitz That was it!22:41
m0viefreak oh, yeah22:41
j416 skipping merges could also be sane22:41
houami joined22:43
xaxxon left22:43
xaxxon joined22:44
brainpro1 joined22:44
gyorb left22:45
brainproxy left22:46
houami left22:48
goweol joined22:53
ResidentBiscuit left22:53
goweol1 joined22:54
henriquev @m0viefreak the weird thing is... If I create a new repository inside it, it works like a charm. However, if I clone a repository (say, from GitHub) and do it, I get this error.22:55
xxMatiasxx left22:56
goweol left22:57
Murr left22:57
Murr joined22:57
houami joined22:58
chaosruler left23:01
webdev007 joined23:01
thiago joined23:02
webdev007 left23:02
webdev007 joined23:03
jstein_ joined23:03
houami left23:03
jstein_jstein23:03
cdown joined23:06
henriquev Example: https://gist.github.com/henvic/09ae8d959d389d8ad2997f9de7838d6d23:07
raijin left23:08
xD3C left23:10
xD3C joined23:10
a3Dman left23:11
azerus left23:12
xxMatiasxx joined23:12
houami joined23:14
daemon joined23:15
g00s joined23:15
yohnnyjoe joined23:15
cdg left23:15
daemon hey all could anyone explain to me why my git is adament I must enter my username and password everytime I clone or commit any changes to a github repo (the ssh -T [email@hidden.address] test returns): Hi <MYUSERNAME>! You've successfully authenticated, but GitHub does not provide shell access.23:16
so my pubkey is write and my global email and username is correct also23:16
i.e. matches my profile23:16
azerus joined23:16
ok91 joined23:16
daemon right* even23:16
I also ntpdate'd the system incase that was an issue, it was only 6 seconds out; but even so yes all correct too23:17
YuGiOhJCJ joined23:17
daemon git was compiled with the following options: https://i.itsosticky.com/11ilw1m.png23:18
YuGiOhJCJ left23:19
houami left23:19
mattcen left23:19
schleppel left23:21
ok91 left23:21
tang^ daemon: you cloned with an SSH URL?23:21
daemon tang^, indeed23:21
not the https23:21
same as I do on a bunch of other systems and its just this ONE system demanding I give a username and password23:21
a3Dman joined23:22
Kaisyu joined23:22
awkwardpenguin joined23:22
tang^ correct ownership and permissions on ~/.ssh and its contents?23:22
mattcen joined23:23
daemon tang^, indeed, the ssh -T [email@hidden.address] would fail other wise23:23
or at least warn23:23
tang^ hmm, there is a switch you can use inline to increase verbosity of ssh while git is connecting23:24
don't recall off the top of my head, though23:24
daemon its fine I rarely send anything from that machine its more a deployment target so does more pulls than pushes23:25
just seems really weird23:25
tang^ that it does23:26
thiago daemon: pastebin the output of GIT_TRACE=1 git fetch23:26
you can Ctrl+C the moment it asks for the password23:26
sentriz left23:27
daemon https://paste.ee/p/wm8gX23:27
thiago daemon: https23:27
tang^ https23:27
daemon https23:27
what I am sure I cloned it using ssh23:28
thiago git remote -v. Does it list two different URLs?23:28
daemon and no terminal history fantastic23:28
TheWild left23:28
db8093246 left23:28
tang^ you can always change the remote to ssh though23:28
daemon thiago, it does I wonder if I added it twice or something23:28
thiago right, git remote set-url origin <new url>23:28
the same URL twice or two different URLs?23:29
daemon tang^, my apologies for that, I honest to god thought I had only added the ssh23:29
awkwardpenguin left23:29
daemon thiago, two different23:29
notnull left23:29
tang^ daemon: no big deal23:29
thiago ok, so either you set up two different URLs or you have a URL rewrite on23:29
tang^ it happens23:29
thiago check the output of git config --global --lit23:29
daemon thiago, its ok I will just flatten it and re clone it correctly23:29
tang^ --list23:29
tvw joined23:30
tang^ meh, just use remote set-url to change both to ssh23:30
daemon thank you for the help you two :) once again my apologies for such a silly mistake23:30
thiago setting the URL won't help if there's a rewrite on23:30
cdown left23:31
tang^ oh? okay23:31
never had it on myself, then23:31
daemon it worked this time, all good ;)23:31
thiago ok, great23:32
daemon there is a chance something weird happened to this one once upon a time; its a long running project and this particular dusty old machine has been sat since the start of it23:32
mainly because its only usage is for testing perl/poe scripts on freebsd and the project is c#/python (sometimes you just need perl to do something in a pinch) ;)23:33
Gustavo6046 left23:34
Gustavo6046 joined23:34
current_user joined23:36
Copenhagen_Bram left23:37
Noldorin joined23:38
__main__ left23:40
Copenhagen_Bram joined23:40
a3Dman left23:40
Phylock left23:41
metts left23:41
the_f0ster left23:41
ARoxdale left23:41
pbrewczynski left23:42
xxMatiasxx left23:42
cliluw left23:43
xxMatiasxx joined23:43
Noldorin left23:44
cliluw joined23:45
KeyJoo left23:45
houami joined23:45
sanscoeu_ joined23:46
xxMatiasxx left23:47
Cheeky-Celery joined23:49
Noldorin joined23:49
houami left23:49
sanscoeur left23:50
sanscoeu_ left23:51
xxMatiasxx joined23:51
xaxxon left23:54
xaxxon joined23:55
al-damiri left23:55
masuberu left23:57
houami joined23:57
bkxd joined23:58
a3Dman joined23:58
bkxd left23:59

Logs Search ←Prev date Next date→ Channels Documentation