IRCloggy #git 2017-12-25

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-25

checkItOut joined00:00
testnick123 left00:01
JollyLage left00:03
finalbeta left00:04
checkItOut left00:04
marlinc left00:06
Elon_Satoshi joined00:07
houami joined00:11
cqi joined00:12
scientes joined00:14
rawste left00:16
houami left00:16
xcm left00:17
xcm joined00:18
vilez left00:22
marlinc joined00:23
swalladge joined00:24
mikecmpbll joined00:31
houami joined00:31
KeyJoo left00:33
jstein left00:36
houami left00:36
xcm left00:40
xcm joined00:40
dsdeiz left00:41
dsdeiz joined00:42
dsdeiz left00:42
dsdeiz joined00:42
cqi left00:43
raijin left00:44
cqi joined00:46
justanotheruser left00:49
Darcidride left00:54
Murr left00:57
Murr joined00:57
matthiaskrgr hm00:58
is there anyway way to get git count-objects sizes in bytes instead of kiloybytes ? :/00:58
jameser joined00:58
rorro left00:59
mikecmpbll left00:59
raijin joined01:00
justanotheruser joined01:01
houami joined01:01
varanese joined01:02
HuskyApocalypse joined01:04
houami left01:06
cqi left01:08
meadmoon joined01:09
houami joined01:11
zzz joined01:13
whitby left01:14
justanotheruserjustan0theruser01:14
whitby joined01:15
cqi joined01:15
houami left01:16
FoxRocks left01:17
FoxRocks joined01:18
jughead joined01:20
houami joined01:21
jughead left01:22
houami left01:26
energizer left01:27
energizer joined01:27
FoxRocks left01:28
checkItOut joined01:31
houami joined01:31
checkItO_ joined01:34
checkItOut left01:34
houami left01:35
bremner multiply by 1024?01:36
sz0 joined01:38
checkItO_ left01:38
checkItOut joined01:39
neil_cn joined01:45
h12o joined01:47
varanese left01:48
CheckDavid left01:49
yohnnyjoe joined01:49
hussam left01:50
h12o left01:51
PuppyApocalypse joined01:52
yohnnyjoe left01:54
dsdeiz left01:56
meadmoon left01:57
dsdeiz joined01:57
h12o joined01:57
brainpro1 left01:59
houami joined02:01
h12o left02:02
linuxmodder joined02:04
linuxmodder left02:04
linuxmodder joined02:04
finalbeta joined02:05
linuxmodder left02:05
houami left02:05
linuxmodder joined02:05
linuxmodder left02:06
linuxmodder joined02:07
linuxmodder left02:08
linuxmodder joined02:08
linuxmodder left02:09
menip left02:11
linuxmodder joined02:11
henriquev left02:14
cdown left02:15
mizu_no_oto joined02:17
phinxy left02:18
Tobbi left02:20
nixdork left02:22
menip joined02:24
Amanas left02:24
vush left02:25
shinnya joined02:26
brainpro1 joined02:27
nixdork joined02:28
scientes left02:30
checkItO_ joined02:30
checkItO_ left02:31
checkItO_ joined02:32
menip left02:32
checkItOut left02:33
vush joined02:35
Mike11 left02:36
linuxmodder left02:36
hash-z3r0 left02:36
konsolebox left02:39
testnick123 joined02:41
FoxRocks joined02:42
konsolebox joined02:42
linuxmodder joined02:44
linuxmodder left02:44
linuxmodder joined02:44
linuxmodder left02:45
BenderRodriguez left02:45
dsdeiz left02:46
ilbot3 left02:46
_ADN_ left02:46
BenderRodriguez joined02:46
dsdeiz joined02:48
dsdeiz left02:48
dsdeiz joined02:48
menip joined02:49
shinnya left02:59
ilbot3 joined02:59
deltam left02:59
kasual joined03:02
xcmGuest4794403:06
Guest47944 left03:06
xcm joined03:06
kasual left03:06
mizu_no_oto left03:08
hash-z3r0 joined03:11
houami joined03:12
leeN left03:12
dsdeiz left03:17
dsdeiz joined03:18
dreiss joined03:19
HuskyApocalypseChristmasCat03:20
testnick123 left03:23
McKraken_zzzzzMcKraken03:24
chachasmooth joined03:31
pdp11 joined03:32
chachasmooth_ left03:34
jameser_ joined03:34
navidr left03:35
Claw_wolf joined03:37
Claw_wolf left03:37
Claw_wolf joined03:37
jameser left03:38
mecasou joined03:39
mecasou Hi, is there a command to get all commits that include a given hash from git ls-tree?03:40
Masber_080 joined03:40
houami left03:40
masuberu left03:42
g00s joined03:48
yohnnyjoe joined03:50
Hello71 left03:53
Hello71 joined03:54
konsolebox left03:54
konsolebox joined03:55
yohnnyjoe left03:55
Claw_wolf left03:59
Claw_wolf joined04:00
dviola joined04:00
lagothrix left04:00
dviola left04:01
regedit joined04:01
konsolebox left04:02
pks left04:02
jameser_ left04:02
konsolebox joined04:03
jameser joined04:03
pks joined04:05
lagothrix joined04:05
PuppyApocalypse left04:12
ToBeCloud left04:12
checkItO_ left04:13
checkItOut joined04:15
Claw_wolf left04:16
Claw_wolf joined04:16
h12o joined04:18
dviola joined04:19
checkItOut left04:20
checkItOut joined04:21
h12o left04:23
gugah left04:24
beco left04:25
neil_cn left04:26
checkItOut left04:26
konsolebox left04:28
konsolebox joined04:30
houami joined04:31
zzz left04:31
Gustavo6046 left04:35
FoxRocks left04:36
altendky left04:39
_rht joined04:44
dreiss left04:44
checkItOut joined04:45
xcm left04:46
xcm joined04:46
checkItOut left04:46
nanga left04:47
checkItOut joined04:47
hash-z3r0 left04:48
nanga joined04:49
nanga left04:49
nanga joined04:49
mud left04:52
FoxRocks joined04:53
iamtakingiteasy joined04:57
iamtakingiteasy hau do i git gud?04:57
Murr left04:57
Murr joined04:57
Cabanoss- joined05:00
Cabanossi left05:00
Cabanoss-Cabanossi05:01
kus left05:02
houami left05:03
houami joined05:04
rajat joined05:06
konsolebox left05:07
|ifei5g00d joined05:08
houami left05:08
ShekharReddy left05:08
konsolebox joined05:09
_xor left05:10
_xor joined05:10
upperdeck_ left05:11
|ifei5good left05:11
energizer left05:12
wxg joined05:13
upperdeck joined05:13
christmastimeuptime05:13
houami joined05:13
Noldorin left05:14
hash-z3r0 joined05:16
energizer joined05:16
houami left05:18
pdp11 left05:18
sz0 left05:19
pdp11 joined05:19
Claw_wolf left05:21
Claw_wolf joined05:21
wxg left05:21
|ifei5g00d left05:22
re1 joined05:22
|ifei5g00d joined05:22
sz0 joined05:23
houami joined05:24
scientes joined05:26
because left05:27
houami left05:28
because joined05:28
hash-z3r0 left05:31
_kk22kk_ joined05:33
_kk22kk_ left05:33
noyb left05:34
Claw_wolf left05:36
Claw_wolf- joined05:36
McKrakenMcKraken_zzzzz05:37
treehug88 left05:40
|ifei5good joined05:42
|ifei5g00d left05:45
Claw_wolf- left05:45
Claw_wolf joined05:45
ahrs left05:49
madewokherd left05:49
ahrs joined05:50
|ifei5g00d joined05:51
yohnnyjoe joined05:51
|ifei5good left05:51
neil_cn joined05:53
noyb joined05:53
yohnnyjoe left05:56
hash-z3r0 joined05:58
Sleepy63 left05:59
h12o joined06:06
Sleepy63 joined06:08
h12o left06:10
g00s left06:13
KeyJoo joined06:16
hash-z3r0 left06:17
Zamerick left06:21
scientes left06:22
johnlage joined06:31
ogny joined06:33
basiclaser left06:33
johnlageJollyLage06:37
menip left06:43
hash-z3r0 joined06:43
excalith joined06:50
dviola left06:53
xeno left06:55
wandering_vagran joined06:56
azri joined06:57
azri left06:59
NeXTSUN left06:59
imack joined06:59
excalith left06:59
Guest3789 joined06:59
hussam joined07:00
raatiniemi joined07:01
hash-z3r0 left07:02
imack left07:02
Guest3789 left07:02
Guest3789 joined07:03
imack joined07:05
catsup left07:06
xeno joined07:06
catsup joined07:06
catsup left07:07
MuffinMedic left07:07
catsup joined07:07
Guest3789 left07:11
FoxRocks left07:12
xshumeng joined07:12
xshumeng left07:14
imack left07:15
senaps joined07:15
senaps i create a file in a branch, it's still present in master. how so? wasn't it supposed to be specific to that branch?07:16
xshumeng joined07:17
xshumeng left07:17
imack joined07:18
xshumeng joined07:18
xshumeng left07:18
ShekharReddy joined07:18
xshumeng joined07:18
xshumeng left07:18
senaps okay i should commit them! :)07:18
xshumeng joined07:18
xshumeng left07:18
xshumeng joined07:18
xshumeng left07:18
xshumeng joined07:19
xshumeng left07:19
xshumeng joined07:19
xshumeng left07:19
xshumeng joined07:19
xshumeng left07:19
xshumeng joined07:19
xshumeng left07:19
MuffinMedic joined07:20
dave0x6d left07:22
halbeno left07:25
houami joined07:27
Gurkenglas left07:27
houami left07:28
halbeno joined07:28
ceda joined07:29
hash-z3r0 joined07:29
ceda hi ... how do i list the last commit in any of the branches. git show --all -s didn't work because it showed last commits for each branch. I want to see only the last of last.07:30
mar77i joined07:31
tkore joined07:31
tkore left07:31
tkore joined07:31
ceda_ei joined07:33
bket left07:34
ceda left07:35
halbeno left07:37
houami joined07:38
halbeno joined07:39
regedit left07:41
bobkyle left07:41
ok91 joined07:43
houami left07:43
_rht left07:43
almighty joined07:45
bket joined07:45
bkxd left07:45
_ikke_ git branch -vv ?07:46
or just -v07:46
hash-z3r0 left07:46
ok91 left07:47
FoxRocks joined07:47
almighty left07:48
houami joined07:48
mud joined07:50
bkxd joined07:51
bkxd left07:51
bkxd joined07:51
yohnnyjoe joined07:53
houami left07:53
bkxd left07:56
yohnnyjoe left07:56
bkxd joined07:56
FoxRocks left07:57
bkxd left07:57
Sarge9451 joined07:59
bkxd joined08:00
Sarge945 left08:00
MoziM_ joined08:04
duderono_ joined08:04
bkxd left08:05
zefferno joined08:05
duderonomy left08:06
kculpis left08:07
mud left08:07
houami joined08:07
dpower left08:08
cqi left08:09
duderono_ left08:12
Mike11 joined08:13
Sarge945 joined08:13
hash-z3r0 joined08:13
Sarge9451 left08:14
ceda_ei left08:16
ceda joined08:17
ceda _ikke_: this again shows last commits of each branch ... i need the last commit only. So, if the person committed to dev at 10:00:00 and to master at 11:00:00, i only want the commit to master not dev08:18
sz0 left08:19
peepsalot left08:20
safe left08:20
oxzmoron93 joined08:21
_ikke_ ceda: git log --date-order -108:24
--all08:24
ephemer0l_ left08:29
mattcen left08:30
senaps left08:30
YuGiOhJCJ joined08:31
hash-z3r0 left08:33
hash-z3r0 joined08:33
bkxd joined08:33
peepsalot joined08:34
bkxd left08:36
bkxd joined08:36
YuGiOhJCJ left08:38
mattcen joined08:38
YuGiOhJCJ joined08:39
houami left08:39
synthmeat left08:39
ephemer0l_ joined08:40
webguynow left08:40
webguynow joined08:41
jameser left08:42
synthmeat joined08:43
konsolebox left08:44
ceda _ikke_: thanks08:44
webguynow left08:45
webguynow joined08:46
konsolebox joined08:46
bkxd left08:52
YuGiOhJCJ left08:56
bkxd joined08:57
bkxd left08:57
YuGiOhJCJ joined08:57
Murr left08:57
bkxd joined08:57
Murr joined08:58
opalepatrick joined08:59
dfas left09:00
houami joined09:00
houami left09:00
noyb left09:01
cqi joined09:02
Claw_wolf left09:05
noyb joined09:07
YuGiOhJCJ left09:10
YuGiOhJCJ joined09:11
Xtzzr joined09:14
dfas joined09:18
Claw_wolf joined09:18
konsolebox left09:19
energizer left09:19
Xtzzr left09:20
z8z joined09:21
konsolebox joined09:26
bkxd left09:28
Claw_wolf left09:31
Claw_wolf joined09:31
bkxd joined09:33
rajat left09:33
imnothreat joined09:37
Puffball left09:39
noyb left09:39
houami joined09:39
Hi-Angel_ left09:39
Puffball joined09:40
rajat joined09:41
h12o joined09:42
katiex7 left09:43
houami left09:44
zefferno left09:45
h12o left09:47
bkxd left09:47
shripadr joined09:51
_ADN_ joined09:53
yohnnyjoe joined09:53
houami joined09:53
Kestrel-029 left09:54
h12o joined09:55
theoceaniscool joined09:56
yohnnyjoe left09:57
Sc0rpius left09:58
houami left09:58
hash-z3r0 left09:58
h12o left09:59
jnewt left10:00
hash-z3r0 joined10:02
Sc0rpius joined10:03
hash-z3r0 left10:06
Nicmavr joined10:09
NicmavrGuest3839110:09
bkxd joined10:13
SteffanW joined10:16
thiago joined10:17
Claw_wolf left10:19
xcm left10:19
xcm joined10:20
dsdeiz left10:20
dsdeiz joined10:20
dsdeiz left10:20
dsdeiz joined10:20
houami joined10:22
cdown joined10:25
bkxd left10:28
senaps joined10:28
hash-z3r0 joined10:29
cqi left10:31
checkItO_ joined10:35
overlord_tm joined10:35
Tobbi joined10:38
Guest38391 left10:38
Guest38391 joined10:38
Guest38391Kestrel-02910:38
checkItOut left10:39
duderonomy joined10:39
imnothreat left10:40
Tobbi left10:40
Tobbi joined10:41
Tobbi left10:41
checkItO_ left10:41
jesst_ joined10:46
jesst_ left10:47
cdown left10:50
aielima joined10:51
sarp joined10:51
navidr joined10:53
AndyBlue joined10:54
cdown joined10:57
Murr left10:57
Murr joined10:57
kus joined10:58
manuelschneid3r joined11:02
cdown left11:04
wandering_vagran left11:06
wandering_vagran joined11:06
DaGoaty joined11:08
Sarge9451 joined11:09
Mike11 left11:09
houami left11:10
Sarge945 left11:10
DaGoaty left11:13
fxrb joined11:15
jnavila joined11:15
houami joined11:20
SteffanW left11:21
jimmyrcom left11:22
hussam left11:22
cdown joined11:23
YuGiOhJCJ left11:24
houami left11:25
YuGiOhJCJ joined11:26
hussam joined11:26
jnavila left11:27
theoceaniscool left11:28
Bin4ry joined11:28
hash-z3r0 left11:30
houami joined11:30
fxrb left11:30
houami left11:35
checkItOut joined11:35
YuGiOhJCJ left11:36
YuGiOhJCJ joined11:37
checkItOut left11:40
houami joined11:40
IanLiu joined11:40
houami left11:44
ixxie joined11:45
zefferno joined11:46
basiclaser joined11:46
bkxd joined11:46
jnavila joined11:47
SteffanW joined11:50
houami joined11:50
hash-z3r0 joined11:51
Guest3789 joined11:52
ok91 joined11:52
ixxie Hello everybody; I have the following problem: there is a large open package repo, lets called it repoX. UserA (me) uses forkA to make PR-A; changes are requested, so UserB uses forkB to make PR-B. Now more changes are requested, and I want to merge the branch corresponding to PR-B back into my copy of the PR-A branch, but I get `error: the follow untracked working tree files would be overwritten by merge:11:52
[...] Please move or remove them before merge.`11:53
I guess this is because there are so many other changes on repoX that the forks we took diverged, but I am not sure what to do with it11:53
yohnnyjoe joined11:54
ephemer0l_ left11:55
houami left11:55
ixxie I wanna take everything not relevant to the PR from repoX, and only the relevant parts of repoA and repoB somehow11:55
hash-z3r0 left11:56
a3Dman left11:57
yohnnyjoe left11:58
a3Dman joined11:58
barteks2x does git stash show -p stash@{1} show the diff as if it would be at the moment I created the stash?11:58
or does it alsom somehow take the current state into account?11:59
johnflux_ left11:59
houami joined12:00
YuGiOhJCJ left12:00
barteks2x any way to name an existing stash?12:00
(stash pop/apply and stash save name won't work because it won't apply without major conflicts12:02
_ADN_ left12:02
oxzmoron93 left12:04
oxymoron93 joined12:04
houami left12:04
oxymoron93 barteks2x: git show -p stash@{n} is ok12:05
barteks2x any way to convert stash to a branch, making it actually start at the commit where I made the stash?12:06
m0viefreak left12:06
barteks2x nvm found it12:08
oxymoron93 well I don't know if that is needed, I just ran command several times with different working dir and got same output12:08
hanneso_ left12:08
Guest3789 left12:09
Guest3789 joined12:09
hanneso joined12:09
houami joined12:10
barteks2x git stash show -p gives me strange results12:12
it seems like it show the diff between *current state* and what the state was at the moment I made the stash12:12
bkxd left12:12
dave0x6d joined12:13
barteks2x when what I *want* to see is the diff between HEAD at the moment I made the stash, and working directory at the moment I made the stash12:13
there is no way noone of the 1000+ people here know how to do it12:14
bkxd joined12:14
in1t3r_ joined12:14
in1t3r_ left12:14
houami left12:14
_ADN_ joined12:15
in1t3r left12:15
oxymoron93 git stash show : "Show the changes recorded in the stash entry as a diff between the stashed contents and the commit back when the stash entry was first created." says in documentation barteks2x12:16
barteks2x no way.12:16
in1t3r_ joined12:16
barteks2x There is no way I stashed almost exactly the same file 3 times together with unrelated changes, that I know I had replaced with completely different imp,ementation12:17
_ADN_ left12:23
shiva__ joined12:24
maheshpec joined12:25
maheshpec left12:26
maheshpec joined12:26
in1t3r_ left12:27
maheshpec left12:28
hash-z3r0 joined12:31
bkxd left12:32
rorro joined12:35
ephemer0l joined12:38
metts left12:38
johnflux_ joined12:39
houami joined12:39
maheshpec joined12:40
grzegorz left12:40
ok91 left12:42
royal_screwup21 joined12:42
royal_screwup21 say I initialize a git repo locally, make a few files, then delete a file. Is it possible to recover the deleted file?12:43
houami left12:44
ShekharReddy left12:44
Foad_NH joined12:45
maheshpec left12:45
Foad_NH Is it possible to follow commit chains if I merge --squash?12:46
_ikke_ What do you mean with following commit chains?12:47
merge --squash does not record where the merge came from12:47
it would just look like any other commit12:47
Foad_NH I mean trace the commit tree.12:47
_ikke_ No12:47
theoceaniscool joined12:47
_ikke_ It would just look like linear history, no record of what branch was merged in12:47
Foad_NH _ikke_: OK. Thanks.12:48
Guest3789 left12:49
dviola joined12:51
barteks2x noooooo... I lost a file that was really hard to get right...12:53
because git stash doesn't include untracked files by default12:53
maheshpec joined12:54
jokajak left12:54
barteks2x is there any way to search for file by name in all places known by git?12:54
_ikke_ The only thing that records filenames are trees12:54
kus left12:55
_ikke_ and if it's not comitted yet, there is no tree for it12:55
barteks2x: you can run git fsck --lost-found12:55
it will place all unreferenced blobs in .git/lost-found12:55
But no filename, just contents by hash12:55
jokajak joined12:55
barteks2x it's java class so I can grep for public class filename12:55
Guest3789 joined12:56
jnavila left12:56
xcm left12:56
xcm joined12:57
Murr left12:57
ShekharReddy joined12:57
Murr joined12:57
barteks2x thanks, it worked :D .git/lost-found/other/799d96186ed7790e1201fe16149553cd188b357b:public class UIBlockStateSelect {12:58
_ikke_ :-)12:58
barteks2x so apparently it's harder than it seems to be to lose something with git12:59
_ikke_ Well, you apparently git added it before12:59
otherwise, git would not even know about it12:59
crater2150 left13:00
ghost43 left13:00
barteks2x looks like it was also saved in intellij local history too13:02
_ikke_ ah, yeah, also13:02
ephemer0l left13:03
sarp left13:04
ephemer0l_ joined13:05
cdown_ joined13:07
kus joined13:08
houami joined13:09
domini joined13:09
cdown left13:09
cdown_cdown13:10
ghost43 joined13:10
a3Dman left13:10
xcm left13:11
xcm joined13:12
shinnya joined13:12
theoceaniscool left13:13
neil_cn left13:14
houami left13:14
AliSSa joined13:15
raatiniemi left13:16
AliSSa left13:16
AliSSa joined13:16
kus left13:17
a3Dman joined13:17
ephemer0l_ left13:18
houami joined13:19
sarp joined13:22
ephemer0l_ joined13:22
houami left13:23
ixxie left13:24
checkItOut joined13:25
jameser joined13:29
houami joined13:29
checkItOut left13:29
Claw_wolf joined13:32
Foad_NH left13:32
houami left13:34
imack left13:34
crater2150 joined13:36
houami joined13:39
sarp left13:40
MeiR` joined13:40
MeiR left13:41
houami left13:43
wxg joined13:44
phinxy joined13:46
tmm88 joined13:48
tmm88 left13:48
tmm88 joined13:48
houami joined13:49
tmm88 left13:49
houami left13:53
ok91 joined13:54
johnflux_ left13:54
sarp joined13:57
rajat left13:59
senaps left13:59
metts joined14:00
cdown_ joined14:01
jameser left14:01
cdown left14:04
konsolebox left14:04
cdown_cdown14:04
hash-z3r0 left14:04
hash-z3r0 joined14:05
Sarge945 joined14:05
Sarge9451 left14:07
Hi-Angel_ joined14:08
gugah joined14:08
konsolebox joined14:10
houami joined14:10
jnavila joined14:13
checkItOut joined14:15
houami left14:15
gugah left14:16
cdown left14:16
maheshpec left14:19
checkItOut left14:19
cdown joined14:19
fission6 joined14:19
Munt joined14:20
houami joined14:21
hanneso left14:25
houami left14:25
hanneso joined14:26
TinkerTyper left14:27
TinkerTyper joined14:29
Claw_wolf left14:29
Hello71ChristmasSucks14:30
tunekey left14:33
zefferno left14:35
zefferno joined14:36
Munt left14:36
Jak_o_Ombroj left14:37
Mike11 joined14:39
royal_screwup21 I'm trying to build14:40
oops sorry14:40
wxg left14:40
Jak_o_Shadows joined14:41
_ADN_ joined14:41
madewokherd joined14:45
Sarge9451 joined14:46
dviola left14:46
Sarge945 left14:47
dave0x6d left14:50
Munt joined14:53
pbrewczynski joined14:53
cdown left14:54
leeN joined14:55
shinnya left15:00
cdown joined15:00
finalbeta left15:02
finalbeta joined15:02
McKraken_zzzzzMcKraken15:04
finalbeta left15:04
finalbeta joined15:05
fission6 left15:05
xPucTu4 left15:05
finalbeta left15:05
xPucTu4 joined15:06
finalbeta joined15:06
xD3C joined15:07
overlord_tm left15:07
SteffanW left15:13
cdown left15:14
cdown joined15:15
zefferno left15:19
cdown left15:20
ilyaigpetrov joined15:20
halbeno left15:21
manuelschneid3r left15:22
ogny left15:25
ceda left15:26
metts left15:28
Guest3789 left15:28
Guest3789 joined15:28
Guest3789 left15:30
metts joined15:31
Zamerick joined15:40
oxymoron93 left15:41
domini left15:41
Sarge945 joined15:43
manuelschneid3r joined15:44
Sarge9451 left15:45
ketas left15:46
ketas joined15:51
Guest98352 left15:52
OnceMe joined15:55
OnceMe is there a variable inside a hook to get last commit message?15:55
yohnnyjoe joined15:55
OnceMe so I commit some file and push, I want to get the commit message which I wrote15:56
NeXTSUN joined15:59
salamanderrake left16:00
yohnnyjoe left16:00
tkore left16:00
salamanderrake joined16:01
cdown joined16:02
DevAntoine joined16:09
_ikke_ What hook specifically?16:11
shripadr left16:12
OnceMe pre-receive16:13
or any other way to obtain current commit message when I push16:13
_ikke_ OnceMe: "This hook executes once for the receive operation. It takes no arguments, but for each ref to be updated it receives on standard input a line of the format:"16:14
" <old-value> SP <new-value> SP <ref-name> L"16:14
hash-z3r0 left16:14
OnceMe ?16:14
_ikke_ That's the information you get16:14
on STDIN, you get one ref per line that is being updated16:15
OnceMe well I can get a user which pushed, via $USER16:15
so I thought I could get commit message as well16:15
_ikke_ nope16:15
$USER is not something git sets16:15
OnceMe can I get a user from git?16:15
which is set via git config?16:16
_ikke_ git itself has no users16:16
just authors and comitters16:16
OnceMe git config --global user.name "my name"16:16
can I get user.name?16:16
_ikke_ Only per commit16:16
this is not communicated when you push as separate data16:17
OnceMe ok cool, how do I get a commit then?16:17
_ikke_ By reading from STDIN16:17
OnceMe inside which hook?16:17
_ikke_ you get information about what references (branches) are being pushed16:17
you can then use tools like git log or others to traverse the commits and do something16:17
OnceMe correct, but I cannot run git log in bare repo16:17
pre-receive is in bare repo16:17
I could go with git archive16:18
_ikke_ you can16:18
OnceMe how?16:18
a3Dman left16:18
raatiniemi joined16:18
OnceMe git log shows only for master branch16:19
raatiniemi left16:19
_ikke_ hold on16:20
OnceMe I figured it out16:21
git log revID works16:21
raatiniemi joined16:21
OnceMe I cna get rev from newrev in pre-receive hook16:21
_ikke_ if you do that, you will get all commits since the beginning for history16:21
a3Dman joined16:22
_ikke_ OnceMe: Here is an example http://tpaste.us/v7rO16:22
OnceMe git show works16:23
_ikke_ OnceMe: What if you push more then one commit?16:23
OnceMe new revision is generated16:23
so basically git show revid --summary does the job16:23
right?16:23
because left16:24
_ikke_ Depends on whaty ou actually want to see16:24
What do you want to achieve with the hook?16:24
DevAntoine left16:24
because joined16:26
Barrt joined16:29
Mike11 left16:29
schleppel joined16:30
Sarge9451 joined16:31
manuelschneid3r left16:32
Sarge945 left16:32
checkItOut joined16:34
checkItOut left16:39
OnceMe _ikke_: to store some info about a commit after a push16:47
finalbeta left16:48
hash-z3r0 joined16:48
finalbeta joined16:48
linuxmodder joined16:49
moei joined16:51
Barrt left16:52
Barrt joined16:52
metts left16:53
paul424 joined16:53
pdp11 left16:55
Gurkenglas joined16:56
wandering_vagran left16:57
xD3C left16:58
sarp left16:59
linuxmodder- joined17:00
linuxmodder left17:00
linuxmodder- left17:01
linuxmodder- joined17:02
navidr left17:02
linuxmodder- left17:03
peepsalot left17:03
xD3C joined17:03
linuxmodder- joined17:03
linuxmodder- left17:03
linuxmodder- joined17:03
xD3C left17:06
mud joined17:06
xD3C joined17:06
Masber_080 left17:08
Noldorin joined17:08
Sarge945 joined17:09
Sarge9451 left17:11
checkItOut joined17:14
sarp joined17:15
peepsalot joined17:15
checkItOut left17:19
linuxmodder- left17:19
QualityAddict left17:19
houami joined17:20
QualityAddict joined17:23
QualityAddict left17:23
QualityAddict joined17:24
Elon_Satoshi left17:26
houami left17:27
Tobbi joined17:27
ok91 left17:28
shynoob joined17:29
hash-z3r0 left17:30
kculpis joined17:31
metts joined17:32
xcm left17:34
xcm joined17:34
Darcidride joined17:36
nd joined17:37
houami joined17:37
ArcaTech joined17:39
FoxRocks joined17:39
nd_ left17:40
FoxRocks_ joined17:41
FoxRocks left17:41
FoxRocks joined17:42
FoxRocks_ left17:42
houami left17:42
FoxRocks left17:42
FoxRocks joined17:43
FoxRocks_ joined17:45
FoxRocks left17:45
hash-z3r0 joined17:45
Noldorin left17:45
houami joined17:47
sarp left17:49
FoxRocks_ left17:49
OnceMe _ikke_: do you know if post-merge works properly?17:50
shynoob left17:51
maheshpec joined17:52
sarp joined17:52
houami left17:52
katiex7 joined17:53
ZexaronS left17:53
ais523 joined17:54
dviola joined17:54
Sarge9451 joined17:55
ais523 I currently have a repository A on my local system which has a remote B; B has a branch B/C which doesn't have a corresponding branch in A. I'm now trying to produce a clone of B/C into a new repository, on the same system. Is there a command that will allow me to do this via somehow cloning the remote from A, or the like?17:56
yohnnyjoe joined17:56
kus joined17:57
houami joined17:57
Sarge945 left17:57
OnceMe ais523: git fetch --update does not help?17:58
git fetch -p should update all branches17:58
ais523 OnceMe: I'm trying to create an entirely new repository, via cloning an existing one17:58
OnceMe clone will just clone the existing repositroy17:59
ais523 but I'm not sure what to clone; ideally I'd like to avoid touching the network (metered connection) so I don't want to have to clone the original upstream repository17:59
so I guess I'm trying to clone a subset of a repository, which is normally fairly easy (you can clone a branch)17:59
but how do you clone a branch that exists only as a locally fetched remote?17:59
theoceaniscool joined18:00
yohnnyjoe left18:01
ais523 I'd expect something like "git clone -b B/C A" to work, but I get "Fatal: Remote branch B/C not found in upstream origin"18:01
"remotes/B/C" doesn't work either18:01
so either I don't understand the syntax or my mental model of the situation is wrong18:01
grawity try refs/remotes/B/C18:02
houami left18:02
grawity as they're not under refs/heads/ like normal branches would18:02
frivol joined18:02
ais523 same error message18:03
actually I think what I might need is git clone --reference18:03
which lets you clone a remote repository but look for objects in a local repository18:03
grawity does it show up in git ls-remote at least?18:03
SteffanW joined18:03
grawity that'd work18:04
ais523 yes, looks like --reference works: my command was git clone --reference A -b C http://url/to/B18:05
although that shares the repositories by mistake, I forgot --dissociate18:07
houami joined18:07
Noldorin joined18:08
xD3C left18:10
ais523 thanks for the suggestions, anyway18:10
_ikke_ OnceMe: post-merge is executed on the local repo18:12
houami left18:12
OnceMe what if I want to run test suite after a merge for that branch?18:12
Mike11 joined18:14
_ikke_ You can invoke the test suite from the post-commit hook, but note that it does not run when you had conflicts18:14
Noldorin left18:15
OnceMe let me try18:16
ArcaTech left18:16
houami joined18:17
OnceMe _ikke_: in post-commit I have echo "testing post commit" and I never get that echo'd when I push18:17
which contains commit18:17
_ikke_ post-commit runs locally, note remotely18:18
it is executed after you commit, not after you push18:18
OnceMe hmm, but when I run test suite in pre-receive and when I merge18:18
I want to check merged branch18:18
by running test suite again18:18
ArcaTech joined18:19
_ikke_ Where do you want the test suite to be run?18:19
Mike11 left18:19
OnceMe locally or on some external server18:19
not sure yet, im sending out some data18:19
is post-merge not advisible?18:19
I think post-commit is not what I need18:19
v4ult joined18:21
houami left18:22
xD3C joined18:22
jason237 left18:23
AliSSa left18:23
_ikke_ OnceMe: Personally, I would not use hooks for that locally18:25
remotely, you can use the post-receive hook to initiate a process that runs the suite (make sure it does not block the push process)18:25
thiago left18:27
Gustavo6046 joined18:28
hash-z3r0 left18:28
OnceMe _ikke_: so for merge to use post-receive18:30
and pre-receive for testing only a push18:30
fstd joined18:30
viric left18:30
VoradorPT joined18:31
_ikke_ OnceMe: post-receive hast nothing to do with merges18:31
OnceMe: the merge has long happened before the post-receive hook is run18:31
post-receive runs after you *push* something18:32
OnceMe what does pre-receive does then?18:32
_ikke_ that can be one commit, 10 commits, 0-infinity merges18:32
OnceMe pre-receive does not react on merge as I can see18:32
fistmas left18:33
_ikke_ OnceMe: post-receive is executed on the remote, after you push something to that remote18:34
commands like commit and merge are just *local* operations18:34
the remote does not see them until after you push them18:35
OnceMe ok18:35
so I can use either pre-erceive or post-receive?18:35
_ikke_ pre-receive is mostly used to check and possibly block something from being pushed18:35
kus left18:36
navidr joined18:36
_ikke_ See the link I sent to you earlier18:37
that is a pre-receive hook that blocks commits that contain binary files from being pushed18:37
OnceMe ok Im testing pre-receive hook18:37
to use for pushs and merges18:38
when I locally merge and git push, hook is not executed18:38
because its fast forward18:38
_ikke_ has nothing to do with it18:38
momomo joined18:38
OnceMe ah yes18:38
can I somehow disable fast for ward when I git pre-receive?18:38
when I git merge*18:39
thiago joined18:39
energizer joined18:39
_ikke_ git merge --no-ff18:39
momomo hello guys .. i nnnneed some help with pusing this repo .. according to the readme: https://github.com/029/Arbetsprov/blob/master/README.md18:39
i am done with the task .. however, i am unable to figure out how to pull without embarassaing myself .. do I push first and then pull?18:40
when I push, i get authentication error: git push -u origin jj-feature-branch18:40
permission deined for user ...18:41
or do i pull first without having pushed or committed anything?18:41
ais523 in general you should pull before pushing; however, if you haven't committed anything, what are you trying to push? additionally you normally need permission from a repository's owner to push to it18:41
_ikke_ to be ably to push to the repo, you need to have permission18:41
What you typically do is that you fork the project, so that you can push to your local for, and then make a pull request18:42
momomo _ikke_: i am just folloing the guideline ... it doesn't say anything about permissions .. so I add the changes .. commit first.. then pull or push ?18:43
ais523 momomo: so what a pull does is that it updates your repository by adding changes from someone else's18:44
_ikke_ momomo: first step: fork the repo18:44
ais523 and what a push does is that it updates /their/ repository by adding /your/ changes18:44
most people don't like you changing their repository unless they trust you already18:44
momomo already forked18:44
ais523 so what you do instead is you just make the changes to your own local copy of the repository18:44
_ikke_ momomo: Did you clone from that fork?18:44
momomo yes18:45
rorro left18:45
momomo then created a feature branch according to18:45
https://www.atlassian.com/git/tutorials/comparing-workflows/feature-branch-workflow18:45
ais523 and once you're happy with them, you can send them the changes via email or github or whatever and say "here, I made some changes, do you want them?"18:45
_ikke_ momomo: What does git remote -v show?18:45
momomo ais523: it says how i am supposed to send it though ... a puill request18:45
origin https://github.com/029/Arbetsprov.git (fetch)18:46
origin https://github.com/029/Arbetsprov.git (push)18:46
FoxRocks joined18:46
momomo now i have committed18:46
_ikke_ is 029 your username?18:46
momomo no18:46
i think i cloned it without a username or anything like that18:46
i think it's their user account18:46
_ikke_ You cloned the original repo, not your fork18:46
momomo on github18:46
_ikke_ You just publicly cloned their repo18:46
anonymously18:47
houami joined18:47
momomo yes, should I not have done so ?18:47
paul424 left18:47
momomo what should I have done ? command ? i did git clone url18:47
_ikke_ momomo: If you want to push to your fork, you should add your forks repo as a remote18:47
momomo aha .. i should have forked it first ?18:47
_ikke_ yes18:47
well18:47
momomo ok, i will try that18:47
_ikke_ You can still do18:47
Mike11 joined18:48
_ikke_ Forking is step one of the guide you posted18:48
sarp left18:48
momomo i will restart and copy my files18:48
_ikke_ no need to restart18:48
momomo can i base the current version on the fork then ?18:48
_ikke_ yes18:48
momomo here is my new fork18:49
https://github.com/joseph987/Arbetsprov18:49
_ikke_ git remote add fork https://github.com/joseph987/Arbetsprov18:49
This will add a new remote (shortcut) to your fork named 'fork'18:49
You can name it whatever you want18:50
momomo and now ? this is already a feature branch ( feature commands has already run prior)18:50
do I push now ?18:50
_ikke_ git push -u <remote> <branchname>18:50
FoxRocks left18:50
_ikke_ where remote is the name of the remote you just added (fork in my example)18:50
momomo do I need to create a new branch first for the fork ?18:51
also , i aam unable to add the files now18:51
_ikke_ no, you already have the branch18:51
momomo: what do you mean, unable to add the files?18:51
momomo git add * not adding files18:51
houami left18:52
webguynow left18:52
webguynow joined18:52
xD3C left18:52
xD3C joined18:52
momomo never mind .. i htink i have already committed .. it is listing some strange stuff though18:53
ArcaTech left18:53
momomo _ikke_: https://imgur.com/a/uLiEs18:53
checkItOut joined18:54
momomo git push -u https://github.com/joseph987/Arbetsprov joseph-seifeddine-feature-branch ?18:54
kus joined18:54
momomo ok, i have now pushed18:54
how do I pull request ?18:54
just git pull ?18:54
https://hastebin.com/ayoluwixem.sql18:55
minionofgozer_ left18:55
momomo it says eveyrhing up to date ... have i notified them now ?18:55
_ikke_ In the web interface18:55
hash-z3r0 joined18:56
djapo joined18:56
momomo ok. done18:56
paul424 joined18:56
momomo i think i changed a bit too much though .. like the entire structure18:57
houami joined18:57
Murr left18:57
djapo hello I just added a remote address to a project and instead of the url I entered It has the absolute path on the filesystem to the project18:57
webguynow left18:57
djapo whats strange is that I was able to push an update to the server, even tho the path is wrong18:57
momomo _ikke_: does it look right? https://github.com/joseph987/Arbetsprov/branches18:57
Murr joined18:57
momomo https://imgur.com/a/lqgxZ18:58
rajat joined18:58
webguynow joined18:58
checkItOut left18:58
Sarge945 joined18:59
_ikke_ You need to make a pull request19:00
Sarge9451 left19:00
_ikke_ I see19:00
hash-z3r0 left19:00
_ikke_ yes, that looks alright19:00
https://github.com/029/Arbetsprov/pull/6019:00
momomo: You should give the pull request a more descriptive title though19:01
djapo ok, I was able to change the actual url in the module itself .. how do I make it so that the module where it is a submodule has the correct url19:01
houami left19:01
djapo I want it to track the origin url in the submodule19:02
it is currently set to url = /home/archangel/git/my_projects/apple/frontclient/19:02
xD3C left19:02
Snaggle joined19:03
xD3C joined19:03
viric joined19:04
momomo _ikke_: thanks for the help19:05
ArcaTech joined19:05
xeno left19:06
momomo fckuing assholes gave me this task to implement over christmas19:06
to show my capability19:06
houami joined19:07
Snaggle If I have a branch on a fork that I keep adding things to that will eventually make it back to upstream/master via github PR, and I branched from origin/master some time ago, and I want to 1) bring the branch up to date with origin/master (which is up to date with upstream) and 2) be able to keep adding commits to it for eventual merging those commits to upstream/master, is it better to 'git rebase origin/master' or 'git merge origin/master' while in my branch19:07
djapo found my answer with git config19:08
_ikke_ Snaggle: I would rebase19:09
xeno joined19:09
sjoshi joined19:10
houami left19:11
sjoshi left19:13
Snaggle _ikke_: thanks. How will git handle the commits I have in my branch that already made it back into master if I rebase? Won’t they be duplicated?19:15
houami joined19:17
ArcaTech left19:17
ais523 left19:18
rajat left19:19
mattcen left19:20
m0viefreak joined19:21
houami left19:21
ArcaTech joined19:21
sarp joined19:22
rorro joined19:23
Lauven joined19:23
houami joined19:27
ArcaTech left19:28
mattcen joined19:28
hash-z3r0 joined19:30
houami left19:31
kvik joined19:32
QualityAddict left19:32
xD3C left19:33
checkItOut joined19:33
gugah joined19:34
hash-z3r0 left19:35
houami joined19:37
theoceaniscool left19:38
checkItOut left19:38
rorro left19:41
houami left19:41
ArcaTech joined19:42
Darcidride left19:44
theoceaniscool joined19:45
Guest18 joined19:46
FoxRocks joined19:46
shennyg joined19:49
PtxDK left19:49
PtxDK joined19:49
cdown left19:49
Sarge9451 joined19:50
FoxRocks left19:50
Sarge945 left19:52
shennyg left19:53
shennyg joined19:54
checkItOut joined19:54
Noldorin joined19:54
Lauven left19:54
_ikke_ Snaggle: Everything merged to master is no longer relevant19:55
If things are merged to master, see your branch as a new branch19:55
vaxcat joined19:56
theoceaniscool left19:56
vaxcat left19:56
yohnnyjoe joined19:57
checkItOut left19:58
cdown joined19:59
dxc joined20:01
hash-z3r0 joined20:02
dxc left20:02
yohnnyjoe left20:02
schoggen joined20:06
Lyqyd joined20:06
houami joined20:06
hash-z3r0 left20:06
schoggen left20:08
theoceaniscool joined20:09
Guest18 left20:09
Guest18 joined20:10
houami left20:11
linuxmodder joined20:14
linuxmodder left20:14
linuxmodder joined20:14
houami joined20:16
ahrs left20:16
luckman212 left20:17
ahrs joined20:17
Guest18 left20:18
JustMeErazem joined20:18
theoceaniscool left20:18
JustMeErazem left20:19
linuxmodder left20:19
Guest18 joined20:19
mattcen left20:19
menip joined20:20
houami left20:21
Mike11 left20:21
OnceMe _ikke_: is merge or rebase better?20:22
pbrewczynski left20:22
OnceMe in which scenario is rebase better?20:22
_ikke_ OnceMe: They are complementary20:22
oprypin OnceMe, merge is simple in the moment, rebase is simpler in the long run due to linear commit history20:22
ArcaTech left20:22
_ikke_ it's not one vs the other20:22
OnceMe hmm, but which one to use?20:23
I mean whats the case where you *cant* use rebase20:23
or merge20:23
_ikke_ you can alway use a merge20:24
but too many merges in random directions causes complicated history20:24
luckman212 joined20:24
OnceMe if I understood well, rebase will make your git history looks like there were no other branches right20:24
_ikke_ that's one usecase20:24
but I often then do git merge --no-ff20:24
OnceMe git merge with ff is similar to rebasing?20:25
re1 left20:25
_ikke_ no20:25
Jitta joined20:25
mattcen joined20:26
_ikke_ OnceMe: if you can ff, the history is already linear20:26
OnceMe so the same as rebase20:26
_ikke_ Rebase *makes* the history linear20:27
phluks joined20:27
oprypin OnceMe, btw your last 3 messages are correct with minor technicalities which maybe don't let _ikke_ confirm that you're correct20:27
ilyaigpetrov left20:30
gugah left20:31
IRPG joined20:31
IRPG left20:32
KeyJoo left20:32
dave0x6d joined20:32
hash-z3r0 joined20:35
|ifei5g00d left20:36
sarp left20:36
mud left20:37
opalepatrick left20:37
|ifei5g00d joined20:38
houami joined20:38
Guest18 left20:38
hash-z3r0 left20:39
Guest18 joined20:40
xcm left20:42
xcm joined20:42
energizer left20:42
Zamerick_ joined20:42
energizer joined20:43
mda1 joined20:43
knop_ joined20:43
houami left20:43
KnoP left20:44
SteffanW left20:45
metts left20:45
Zamerick left20:46
Neo left20:46
energizer left20:46
energizer joined20:46
Noldorin left20:47
dmj` left20:47
FoxRocks joined20:47
hegge left20:48
houami joined20:49
_ikke_ The end result might look the same, but the commands have different goals20:50
navidr left20:51
_ikke_ You cannot choose to use git merge --ff-only if history is diverged20:51
while you *can* choose to use git rebase in that case20:51
FoxRocks left20:52
energizer left20:52
dmj` joined20:53
houami left20:53
hash-z3r0 joined20:54
Zamerick_ left20:55
bkxd joined20:56
noyb joined20:57
Murr left20:57
Murr joined20:57
Jitta left20:58
theoceaniscool joined20:58
Munt left21:00
GreyO923 joined21:00
GreyO923 left21:01
dmj` left21:01
Marvel joined21:02
xcm left21:02
Marvel left21:04
kvik left21:04
kvik joined21:05
aurednekjok joined21:07
Arcaelyx left21:07
gtristan left21:08
aurednekjok left21:08
kus left21:08
hussam left21:12
kus joined21:12
hussam joined21:13
mattcen left21:16
mattcen joined21:20
mac- hey21:25
olderbtm70 joined21:25
mac- I need to use several ssh keys to use for several repos21:26
then I asked uncle Booble and found out few solutions21:26
Sarge945 joined21:26
thiago use multiple Host entries in ~/.ssh/config21:27
olderbtm70 left21:27
mac- three actually: GIT_SSH_COMMAND, .ssh/config and the latest one with: config core.sshCommand21:27
the most flexible is GIT_SSH_COMMAND I think - the worst scenario is to use wrong one and get Access Denied21:28
Sarge9451 left21:28
paul424 left21:29
mac- thiago: but User entry in .ssh/config is relevant to which user?21:29
OS? git?21:29
thiago you tell me21:29
that depnds on your server21:29
mac- I'm talking now about github and bitbucket21:30
thiago for github, the User is always git21:31
mac- then it is no so flexible as GIT_SSH_COMMAND21:31
grawity there's nothing you can do in GIT_SSH_COMMAND that you cannot also do in .ssh/config21:32
as long as it still involves calling openssh21:32
mac- anyway, in man git I found that GIT_SSH and GIT_SSH_COMMAND are same with exception that the latter one has precedence over the first one21:32
gitinfo the git manpage is available at https://gitirc.eu/git.html21:32
thiago you don't need flexibility21:33
add multiple Host entries, that's all21:33
energizer joined21:33
mac- but when I'm trying to use GIT_SSH I get: fatal: cannot run ssh -i /path/to/private_key: No such file or directory21:34
thiago you need a script21:35
the argument to the variable is the name of a file. *Not* a command.21:35
mac- uhm, then GIT_SSH needs wrapper when GIT_SSH_COMMAND not ?21:35
thiago because one is the name of an executable, the other is a command21:35
_ikke_ GIT_SSH_COMMAND is interpreted by a shell21:36
mac- oh sh*t, right I missed it: $GIT_SSH on the other hand must be just the path to a program21:36
_ikke_ "Usually it is easier to configure any desired options through your personal .ssh/config file."21:36
Neo_ joined21:37
momomo left21:37
mac- ok, thx21:38
staafl__ left21:39
Sarge9451 joined21:44
webguynow left21:45
webguynow joined21:45
Sarge945 left21:46
cagomez joined21:46
Acerific joined21:46
FoxRocks joined21:48
foo left21:48
nchambers joined21:49
robattila256 left21:49
nchambers is there something like `git shortlog` but also shows the commit reference?21:49
thiago nchambers: man git-shortlog. See the format option.21:50
gitinfo nchambers: the git-shortlog manpage is available at https://gitirc.eu/git-shortlog.html21:50
nchambers thanks thiago!21:50
thank you too gitinfo21:50
gitinfo nchambers: you're welcome, but please note that I'm a bot. I'm not programmed to care.21:50
nchambers I know you're a bot :)21:50
dmj` joined21:51
robattila256 joined21:52
FoxRocks left21:53
LVK267 Well obviously that is wrong since you just said "you're welcome" :) Obviously you *are* programmed to care!21:53
CheckDavid joined21:53
nchambers yeah!21:53
fatalhalt left21:55
qsx all complaints go to jast21:55
cdown left21:55
momomo joined21:58
yohnnyjoe joined21:58
shennyg left21:58
fatalhalt joined21:58
QualityAddict joined21:59
momomo _ikke_: you still there?21:59
cagomez left22:00
momomo I detected an error in my code. I have already fixed it .. but since i already said I wanted to pull / merge my code ... is it possible to add this little change to that pull ?22:00
can I take that pull request back ? and make a new one ?22:00
Peng_ You can push the new commit to the branch22:01
thiago if you're talking about github, you don't need to take it back. Simply push the updated commits to the same branch.22:01
momomo so just commit -m "message"; then git push ? or git push to branch someting ?22:02
OnceMe left22:03
yohnnyjoe left22:03
thiago that depends on your upstream22:03
momomo the pull request was made separately though .. from the github web site22:03
Peng_ Where did you push before22:03
oprypin momomo, oh, well that's tough then22:03
foo joined22:03
thiago they may request that you squash the change into an existing commit you're pushing22:03
LVK267 Provided you take the necessary precautions to backup your repository or likewise, you can always reset back before the merge, then do a "git commit --amend" to fix your bug before pulling.22:03
oprypin dont do that next time22:03
LVK267 Or you can just commit your fix22:03
foo git log in a branch *only* shows git log for *that branch* - correct?22:03
oprypin thiago, that is in the past22:03
LVK267 If you have pulled then pushed, then no, you should just commit.22:03
oprypin github can squash by itself22:03
foo, sure22:04
LVK267 yes, git log by default will start at the tip of the current branch and go backwards.22:04
momomo oprypin: here it is https://github.com/joseph987/Arbetsprov/branches22:04
foo oprypin: thank you22:04
publio joined22:04
momomo the new commit is there22:04
but the pull has already occurred ?22:04
oprypin momomo, did you use github's web interface to edit the file and create a pull request?22:04
thiago requires contributors to squash and push the update22:04
oprypin thiago, that's silly22:04
foo If I have a branch that has new files and commits different from master, and if I decide I don't want that feature, I can simply delete the branch - thus removing those files/commits, and they'll be lost. Correct?22:04
LVK267 @foo, correct.22:05
momomo oprypin: no, just to pull with a message after things were pushed .. it seemes they already accepted my first pull ?22:05
thiago oprypin: if they send two commits, they mean to send two separate commits22:05
foo LVK267: thank you22:05
thiago I don't accept "introduce bug" and "fix bug" commits22:05
cagomez joined22:05
oprypin thanks for describing but that doesn't change the fact that it's silly22:05
thiago yes, it's silly to introduce a mistake and fix it22:06
momomo can someone tell me what has happened with this branch ? https://github.com/joseph987/Arbetsprov/tree/joseph-seifeddine-feature-branch22:06
thiago just let's not have it in the first place22:06
xD3C joined22:06
oprypin then you have to re-review the whole change22:06
momomo do I have two branches active ? https://github.com/joseph987/Arbetsprov22:07
it says 2 branches22:07
LVK267 @foo The only thing (concept) that keeps a commit alive is a live reference to it. A live reference can be a branch pointer, a tag (or similar) or another commit that points to it. If you delete all live references to a commit, the commit will eventually be garbage collected, and thus a string of commits will be eligible for collection/removal. Almost all git commands will stop considering gits if they're no longer22:07
referenced, even if they currently exist on disk.22:07
thiago oprypin: yes22:07
oprypin instead you could review just the tiny fix22:07
LVK267 So the deletion of the branch will stop almost all commands from referring to/counting those commits, and when garbage collection occurs they'll be gone.22:07
thiago oprypin: that's where the web UI fails. Other, good review tools allow to do a patchset-to-patchset comparison22:07
foo I did git reset --hard HEAD~1 in a branch - thinking it would show me the differing commits / files, then I could recommit/delete as necessary. Instead, I did that and I do git status and it shows me no new files. I wonder, did I delete those files from the last commit? Now I wonder if there is a way to get them bac, heh22:07
LVK267 yes, there is a way to get them back, right now22:08
thiago they also show where I left comments, so I can tell if everything I asked to be changed was, indeed, changed.22:08
LVK267 when you did "git reset --hard SOMETHING" you updated both your index and your working folder at the same time.22:08
thiago foo: git reset --hard @{1}22:08
momomo someone .. did the first (earlier today) pull go through already ?22:08
LVK267 However, the previous commit still exists on disk.22:08
thiago foo: the --hard switch applies the changes to the worktree22:08
LVK267 git reflog should tell you which commit you switched from22:09
momomo the new commits are ok? i can't see that I can make a new pull anywher e.. maybe it's all part of the same ?22:09
foo LVK267: aha, ok - will try22:09
momomo so I don't need to do antyhing22:09
foo thiago: thanks, checking now22:09
LVK267 The best way to get rid of a commit on a branch is first to create a temporary branch for the current commit, then use reset to go back the requisite number of commits. You won't accidentally lose anything this way.22:09
momomo it says 2 commits ahead of master22:09
LVK267 ie. first. "git branch TEMP", then "git reset --hard WHATEVER". Until you delete the "TEMP" branch you won't lose anything.22:10
oprypin momomo, good, just push it?22:10
momomo, it's already there, what else do you want? https://github.com/029/Arbetsprov/pull/60/commits22:10
momomo oprypin: i already pushed .. i think that push is already part of the first earlier pull22:10
https://github.com/029/Arbetsprov/compare/master...joseph987:joseph-seifeddine-feature-branch?expand=122:10
oprypin good22:10
momomo oprypin: great, yes, now i can see both commits!22:11
foo LVK267: thank you (PS. Prefacing messages with foo, or whoever you're speaking to, would help ensure your great advice is received :)) Thank you!22:11
Barrt left22:11
draget joined22:13
Barrt joined22:13
foo git reflog was helpful... I have this: https://bpaste.net/show/cf39a9c718b2 - if I want to get to HEAD@{8} (line 8), I believe I do git reset --hard @{1} in the branch I'm in, and that should then show me the files with changes/new when I do git status - correct?22:15
energizer left22:16
energizer joined22:16
energizer left22:17
theoceaniscool left22:17
energizer joined22:17
nivag_ left22:17
dmaian left22:17
dmaian joined22:17
cdown joined22:18
momomo guys, i can see previous peoples solutions .. their pull requests .. for instance; https://github.com/029/Arbetsprov/pull/55 .... but how can I actually see his entire solution ? I can only see what he has committed ..22:19
like I would to see the entire branch22:19
in a neat file structuere22:19
cagomez left22:20
LVK267 @foo then 5b5c70d was your previous commit.22:20
Before the reset22:21
to "get it back" issue this command: git branch TEMP 5b5c70d22:21
This will create a TEMP branch referring to the commit, you can merge it in, cherry-pick it, show it, etc.22:21
Sorry, that is the sha of the new commit22:22
e2260d9 is the commit before the reset22:23
perrier-jouet left22:23
exotime left22:24
perrier-jouet joined22:24
draget left22:24
cdown left22:25
mattcen left22:25
a3Dman left22:27
mattcen joined22:27
foo LVK267: thank you, it looks like e2260d9 HEAD@{7}: commit: WIP Testing spiders for crawling - this was the first commit in this branch that changed the sha. So, to create a temp branch referring to the pre-commit sha, I do git branch TEMP 5b5c70d - correct?22:28
LVK267 No, git branch TEMP e2260d922:28
This will create a branch that points to the commit with the sha e2260d9............22:29
mel00010 left22:29
exotime joined22:29
foo LVK267: nice, thank you. I'm beginning to think the files I added were pre-commit e2260d9. /me checks22:31
oh, heh, yeah. Nonetheless, this is still helpful.22:31
phluks left22:32
LVK267 Rule #1 with git, don't be afraid of experimenting. Rule #0 of git, make sure you have a backup!22:32
foo LVK267: ha! I like it. :)22:32
LVK267: so I believe, from skills-scout I can now do git merge TEMP ... put those files back in here, then be back at where I was22:32
Correct?22:33
FoxRocks joined22:33
LVK267 If you merge in that commit, then the files and their changes will be back, yes,.22:33
Guest18 left22:33
foo For having "backups" - I usually cp -R the dir that has the .git repo in it. Are there other suggested options?22:34
LVK267 If you make a complete copy of your git repository you're golden.22:35
a3Dman joined22:35
Snaggle left22:35
ArcaTech joined22:36
foo Great22:36
LVK267: Appreciate your help, thank you :)22:36
Barrt left22:36
theoceaniscool joined22:43
momomo left22:44
theoceaniscool left22:49
Xiti left22:49
ChristmasCat left22:49
Xiti joined22:50
mooasaurus left22:51
mooasaurus joined22:51
Barrt joined22:52
HuskyApocalypse joined22:53
Tobbi left22:53
ArcaTech left22:55
Murr left22:57
Murr joined22:57
thiago left22:57
xD3C left22:59
basiclaser left23:01
thiago joined23:04
houami joined23:04
houami left23:09
kus left23:20
exotime left23:23
giraffe left23:23
pdp11 joined23:23
jagob joined23:24
jimmyrcom joined23:26
pdp11 left23:28
jnavila left23:28
exotime joined23:28
pdp11 joined23:28
Guest18 joined23:30
hash-z3r0 left23:32
pdp11 left23:32
cdown joined23:34
converge joined23:35
converge left23:35
converge joined23:35
royal_screwup21 left23:35
jagob left23:35
in1t3r_ joined23:35
in1t3r_ left23:35
in1t3r joined23:36
cdown left23:38
shiva__ left23:38
clickjac_ joined23:40
clickjack left23:40
grumble left23:40
aielima left23:40
cdown joined23:41
ArcaTech joined23:41
cdown left23:43
naiveai joined23:44
Saragog joined23:45
grumble joined23:45
jagob joined23:47
hash-z3r0 joined23:47
cdown joined23:48
HuskyApocalypse left23:51
dsdeiz left23:53
dsdeiz joined23:53
hash-z3r0 left23:57
kus joined23:59
Tobbi joined23:59

Logs Search ←Prev date Next date→ Channels Documentation