IRCloggy #git 2020-12-17

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.

2020-12-17

osse yes, there are some tricks00:00
but usually the branch you change you have checked out, so00:00
kupi left00:03
al3x27 left00:04
stats4647 joined00:04
shush Can one create symbolic refs?00:05
I'm wondering if symbolic refs could be useful to mark some remote refs as deploy remotes00:05
jabster28 left00:06
osse yes, man git-symbolic-ref00:06
gitinfo the git-symbolic-ref manpage is available at https://gitirc.eu/git-symbolic-ref.html00:06
Muimi joined00:08
justanotheruser left00:08
stats4647 left00:09
patrickp left00:11
patrickp joined00:12
nrmt^ left00:12
Jitta left00:13
Kurozen left00:15
yonder joined00:16
tiin57 left00:21
cads left00:24
geosmile joined00:24
cads2 left00:24
fstd left00:25
fstd joined00:25
tiin57 joined00:25
is_null left00:28
orbyt_ left00:29
va5c0 joined00:30
bambanx joined00:33
va5c0 left00:33
va5c0 joined00:33
cr4y1 joined00:34
is_null joined00:35
eligos left00:36
va5c0 left00:36
va5c0 joined00:38
va5c0 left00:39
foul_owl left00:39
va5c0 joined00:41
Noldorin joined00:42
cbreak left00:47
tiin57 left00:51
jedsharp joined00:52
mowcat left00:54
tiin57 joined00:55
va5c0 left00:58
royal_screwup21 joined01:01
_Warl0ck left01:03
ShapeShifter499 joined01:03
_Warl0ck joined01:03
va5c0 joined01:03
va5c0 left01:04
royal_screwup21 left01:06
jedsharp left01:07
ShapeShifter499 left01:07
ShapeShifter499 joined01:08
va5c0 joined01:08
va5c0 left01:09
clime left01:09
foul_owl joined01:10
fuzzypixelz left01:12
blahboybaz joined01:12
cliluw joined01:12
va5c0 joined01:12
va5c0 left01:14
va5c0 joined01:16
dqx left01:18
va5c0 left01:20
va5c0 joined01:21
tiin57 left01:21
jedsharp joined01:22
minsec left01:24
blahboybaz left01:24
ShapeShifter499 left01:24
Noldorin left01:24
hnOsmium0001 left01:24
jstein left01:24
FFY00 left01:24
nickmass left01:24
CodeSlingerPaul left01:24
amerigo left01:24
saidelike left01:24
shabius left01:24
random_yanek left01:24
chachasmooth left01:24
DNS left01:24
onmeac left01:24
Lewix_ left01:24
de-vri-es left01:24
uidzer0 left01:24
Seveas left01:24
chusem4n left01:24
jelmer left01:24
mp3 left01:24
trobotham left01:24
sjohnson left01:24
crawler left01:24
batrick left01:24
Abdullah left01:24
LouWestin left01:24
yn left01:24
infernix left01:24
Nothing4You left01:24
LeMike left01:24
demize left01:24
lolmac left01:24
sparr left01:24
CustosLimen left01:24
circuitbone left01:24
graphicsv left01:24
ghormoon left01:24
rudi_s left01:24
dakar left01:24
dwmw2_gone left01:24
jkhsjdhjs left01:24
Zenstecm left01:24
forrestv left01:24
altendky left01:24
Lewix left01:24
GGMethos left01:24
madduck left01:24
bodie_ left01:24
Nizumzen left01:24
gitinfo left01:24
howell left01:24
tbrowder left01:24
nioncode left01:24
i7c left01:24
ThiefMaster left01:24
miklcct left01:24
BinGOs left01:24
CheckYourSix left01:24
daurnimator left01:24
bremner left01:24
mx08 left01:24
joder left01:24
Forkk left01:24
onla left01:24
shrysr left01:24
wmo left01:24
Hobbyboy left01:24
raz left01:24
trevnorris left01:24
sim642 left01:24
appll left01:24
TooLmaN left01:24
va5c0 left01:25
ghormoon joined01:25
tiin57 joined01:25
sparr joined01:27
is_null left01:27
ephemer0l left01:27
melosense left01:28
va5c0 joined01:28
va5c0 left01:29
blahboybaz joined01:30
ShapeShifter499 joined01:30
Noldorin joined01:30
hnOsmium0001 joined01:30
jstein joined01:30
FFY00 joined01:30
nickmass joined01:30
CodeSlingerPaul joined01:30
amerigo joined01:30
saidelike joined01:30
shabius joined01:30
chachasmooth joined01:30
DNS joined01:30
onmeac joined01:30
Lewix_ joined01:30
de-vri-es joined01:30
uidzer0 joined01:30
Seveas joined01:30
chusem4n joined01:30
jelmer joined01:30
mp3 joined01:30
trobotham joined01:30
sjohnson joined01:30
crawler joined01:30
batrick joined01:30
Abdullah joined01:30
LouWestin joined01:30
yn joined01:30
infernix joined01:30
LeMike joined01:30
demize joined01:30
lolmac joined01:30
circuitbone joined01:30
CustosLimen joined01:30
graphicsv joined01:30
rudi_s joined01:30
dakar joined01:30
dwmw2_gone joined01:30
jkhsjdhjs joined01:30
Zenstecm joined01:30
forrestv joined01:30
Lewix joined01:30
altendky joined01:30
GGMethos joined01:30
madduck joined01:30
bodie_ joined01:30
Nizumzen joined01:30
gitinfo joined01:30
howell joined01:30
bremner joined01:30
tbrowder joined01:30
nioncode joined01:30
i7c joined01:30
ThiefMaster joined01:30
miklcct joined01:30
BinGOs joined01:30
CheckYourSix joined01:30
daurnimator joined01:30
onla joined01:30
mx08 joined01:30
joder joined01:30
Forkk joined01:30
trevnorris joined01:30
shrysr joined01:30
wmo joined01:30
Hobbyboy joined01:30
raz joined01:30
sim642 joined01:30
appll joined01:30
TooLmaN joined01:30
tepper.freenode.net set mode: +o01:30
miklcct left01:30
miklcct joined01:31
GGMethos left01:31
minsec joined01:31
Sigma left01:32
Sigma joined01:32
va5c0 joined01:32
altendky left01:33
howell left01:33
va5c0 left01:33
howell joined01:33
hnOsmium0001 left01:33
amerigo left01:33
lolmac left01:33
CustosLimen left01:33
graphicsv left01:33
Nizumzen left01:33
GGMethos joined01:34
circuitbone left01:34
altendky joined01:34
amerigo joined01:35
lolmac joined01:35
random_yanek joined01:36
Nizumzen joined01:36
graphicsv joined01:36
hnOsmium0001 joined01:36
CustosLimen joined01:36
Nothing4You joined01:36
OnkelBlade left01:36
circuitbone joined01:37
onizu left01:39
cr4y1_ joined01:40
jstimm joined01:41
cr4y1 left01:41
cr4y1_ left01:41
wallacer left01:41
cr4y1 joined01:41
wallacer joined01:42
cr4y1 left01:43
CodeSlingerPaul left01:45
jstimm left01:46
jaziz joined01:47
minsec left01:47
bambanx left01:48
minsec joined01:49
Lord_of_Life_ joined01:49
qpdb left01:50
Lord_of_Life left01:51
Lord_of_Life_Lord_of_Life01:51
tiin57 left01:51
ShapeShifter499 left01:53
ShapeShifter499 joined01:53
tiin57 joined01:55
cr4y1 joined01:55
jstimm joined01:55
nadley left01:58
cr4y1 left01:58
cr4y1 joined01:59
jedsharp left02:00
brodie_ joined02:03
Xenguy_ joined02:03
Blukunfando joined02:03
stux|RC-only left02:03
is_null joined02:04
cr4y1 left02:04
jabster28 joined02:04
stux|RC-only joined02:05
Xenguy left02:07
jabster28 left02:08
jstimm left02:08
Xenguy_Xenguy02:11
Newami joined02:13
Newami left02:18
oatmealraisin joined02:19
tiin57 left02:21
Goplat joined02:22
Maxattax left02:23
tiin57 joined02:24
xelxebar joined02:24
Maxattax joined02:25
powerhouse left02:26
orbyt_v7 left02:28
Noldorin left02:30
ShapeShifter499 left02:30
ShapeShifter499 joined02:30
powerhouse joined02:30
F0rTex left02:30
F0rTex joined02:38
amerigo left02:41
qpdb joined02:42
shush left02:44
ephemer0l joined02:49
tiin57 left02:51
tejr left02:53
tejr joined02:54
tiin57 joined02:55
eligos joined03:09
thiago left03:13
zsoc left03:16
duderonomy joined03:16
ShapeShifter499 left03:16
ShapeShifter499 joined03:16
tiin57 left03:21
lagothrixGuest6442003:24
xirhtogal joined03:24
Guest64420 left03:24
xirhtogallagothrix03:24
PJBoy left03:24
tiin57 joined03:24
Guest20 joined03:28
drbean joined03:36
schweby left03:41
Irish joined03:42
schweby joined03:44
Guest20 left03:49
CamWang joined03:50
tiin57 left03:51
Technodrome left03:52
CamWang left03:52
tiin57 joined03:54
Irish left03:59
wallacer left04:00
wallacer joined04:02
jabster28 joined04:04
prgg left04:05
prg3 joined04:06
stats4647 joined04:06
jabster28 left04:09
Cthalupa left04:09
Cthalupa joined04:10
stats4647 left04:10
infl00p left04:15
infl00p joined04:15
tryte left04:16
hagabaka left04:17
tryte joined04:17
hagabaka joined04:18
tiin57 left04:21
riksteri joined04:21
orbyt_v7 joined04:23
riksteri left04:24
Guest20 joined04:24
orbyt_v7 left04:24
riksteri joined04:24
tiin57 joined04:25
orbyt_ joined04:25
darkbit joined04:35
drbean left04:37
minsec left04:42
shush joined04:44
zulutango left04:45
geosmile left04:48
triode joined04:48
triodeGuest9560604:48
zulutango joined04:50
shush left04:50
tiin57 left04:51
justanotheruser joined04:54
tiin57 joined04:55
minsec joined04:56
crose joined04:57
relipse left04:58
brodie_ left04:59
unluckyshrubbery left05:01
minsec left05:01
unluckyshrubbery joined05:09
minsec joined05:11
brodie_ joined05:14
brodie_brodie05:20
tiin57 left05:21
tiin57 joined05:24
oatmealraisin left05:27
gordonfish left05:28
gordonfish joined05:28
minsec left05:33
al3x27 joined05:33
brodie left05:34
j7k6 left05:39
j7k6 joined05:40
gast0n left05:40
wallacer left05:47
cliluw left05:48
wallacer joined05:49
tiin57 left05:51
madewokherd left05:52
minsec joined05:53
tiin57 joined05:54
dob1_ joined05:57
minsec left05:58
dob1 left05:59
AnAverageHuman left06:03
brodie joined06:03
dob1_dob106:04
jabster28 joined06:04
minsec joined06:09
jabster28 left06:09
brodie left06:13
zulutango left06:15
raven-au_ joined06:15
sudoforge left06:16
raven-au left06:18
raven-au_raven-au06:18
OnkelBlade joined06:20
tiin57 left06:21
zulutango joined06:21
tiin57 joined06:24
bookworm left06:25
tonyj left06:28
sord937 joined06:28
bookworm joined06:28
jaziz1 joined06:35
sim590 left06:37
jaziz left06:39
cliluw joined06:40
sim590 joined06:43
Furai left06:47
tiin57 left06:51
minsec left06:52
waveclaw left06:54
tiin57 joined06:55
LetoThe2nd joined06:56
ferdna joined06:58
gigasu_shida joined07:00
Muimi left07:03
Muimi joined07:03
minsec joined07:03
cliluw left07:07
cliluw joined07:07
apus left07:08
apus joined07:08
onizu joined07:11
Maxattax left07:12
milkt left07:13
j7k6 left07:15
Jookia left07:16
tejr left07:16
gxt left07:16
j7k6 joined07:16
tejr joined07:16
Jookia joined07:17
gxt joined07:17
rfuentess joined07:18
DarthRadar left07:18
milkt joined07:18
teclator joined07:18
DarthRadar joined07:18
Furai joined07:20
tiin57 left07:21
yonder left07:24
tiin57 joined07:24
gpanders left07:26
thansen left07:27
thansen joined07:28
cbreak joined07:31
tejr left07:32
tryte left07:34
DiffieHellman left07:34
denisse left07:34
Wetmelon left07:36
Jookia left07:36
tryte joined07:37
denisse joined07:37
DiffieHellman joined07:37
gpanders joined07:37
Jookia joined07:37
tejr joined07:38
OnkelBlade left07:39
sven^ left07:43
cYmen left07:43
cYmen joined07:43
sven^ joined07:43
sven^ left07:43
sven^ joined07:43
ShapeShifter499 left07:45
ShapeShifter499 joined07:45
gpanders left07:48
Betal left07:48
ShapeShifter499 left07:50
ShapeShifter499 joined07:50
cliluw left07:50
cliluw joined07:51
tiin57 left07:51
tiin57 joined07:54
hexnewbie left07:55
ShapeShifter499 left07:59
ShapeShifter499 joined07:59
unluckyshrubbery left08:03
rfuentess_ joined08:04
jabster28 joined08:05
rfuentess left08:05
rfuentess_rfuentess08:06
arcatech left08:07
ferdna left08:08
stats4647 joined08:08
howdoi left08:09
DevAntoine joined08:09
jabster28 left08:09
Goplat left08:11
fuzzypixelz joined08:12
fuzzypixelz left08:12
fuzzypixelz joined08:12
stats4647 left08:12
nbsande left08:14
zmt01 left08:16
nbsande joined08:16
Kurozen joined08:17
chele joined08:18
zmt00 joined08:19
tiin57 left08:21
darkbit left08:22
Haohmaru joined08:22
dob1 left08:23
tiin57 joined08:25
thm joined08:26
thm when merging a branch from another repo to my local repo, can I include tags attached to one of the merged commits?08:27
ikke thm: what exactly do you expect to happen?08:30
thm the tag present in the source repo should be present in the target repo afterwards08:32
theorangeone left08:33
bongjovi joined08:33
ikke Then you just need to fetch the tags from that repo08:33
theorangeone joined08:33
thm no, I only want the tags present on one of the commits that were added to the target repo08:33
not any other unrelated tags08:33
ikke Then you need to fetch that single tag08:34
a tag is similar to a branch08:34
they are both refs08:34
thm I know that I cant fetch that tag manually, I'm asking whether that can be made automatically as part of the merge operation08:35
ikke no08:35
merging branches does not involve fetching tags08:35
thm like the --follow-tags option for other operations08:35
darkbit joined08:35
ikke No, merging is a local operation, while fetching tags is a remtoe operation08:36
(an operation involving remotes)08:36
thm so there's a difference between a 'real' remote, and an ad-hoc one?08:38
ikke thm: no, it's more similar in that you cannot merge a branch that you did not fetch first08:40
and, that, once you fetched a tag, it makes no sense to have it part of a merge operation08:40
is_null left08:40
Kurozen left08:44
gigasu_shida left08:44
bongjovi left08:50
amahl joined08:50
thansen left08:50
thansen joined08:51
tiin57 left08:51
orbyt_ left08:53
tiin57 joined08:55
cr4y1 joined08:59
theoceaniscool joined09:00
Ekho left09:00
Cthalupa left09:01
Cthalupa joined09:02
ShapeShifter499 left09:06
ShapeShifter499 joined09:06
minsec left09:07
minsec joined09:11
milkt_ joined09:11
shabius_ joined09:12
j7k6 left09:12
Ekho joined09:12
austin987 left09:12
milkt left09:14
j7k6 joined09:14
shabius left09:15
dob1 joined09:17
tiin57 left09:21
justanotheruser left09:24
Bigcheese left09:25
tiin57 joined09:25
Bigcheese joined09:26
austin987 joined09:27
calcul0n joined09:34
Guest20 left09:35
amerigo joined09:36
fuzzypixelz left09:37
hnOsmium0001 left09:39
Kurozen joined09:40
hexnewbie joined09:41
cliluw left09:41
cliluw joined09:42
Tobbi_ left09:46
Tobbi_ joined09:46
unluckyshrubbery joined09:48
tiin57 left09:51
badeball joined09:51
badeball hi! will `get remote-ls` perform a request and return updated information or does it use data from last git-fetch?09:52
ikke badeball: it directly connects to the remote09:53
badeball ikke: very cool, thanks!09:54
ikke it's ls-remote btw09:54
tiin57 joined09:54
badeball and a follow up question: will running remote-ls in a local repository affect it like git-fetch does?09:54
ikke: oh, yeah09:54
ikke no, git ls-remote is just a query tool09:55
hendry left09:55
badeball alright, very awesome09:56
DevAntoi_ joined09:59
DevAntoine left09:59
fuzzypixelz joined10:00
fuzzypixelz left10:00
fuzzypixelz joined10:00
DevAntoi_ left10:00
DevAntoine joined10:01
hendry joined10:03
jabster28 joined10:05
OnkelBlade joined10:06
jabster28 left10:09
clime joined10:14
flashmozzg joined10:16
hqdruxn08 left10:17
flashmozg joined10:18
wallacer left10:20
onizu left10:20
flashmozzg left10:20
tiin57 left10:21
wallacer joined10:21
duderonomy left10:24
tiin57 joined10:24
minsec left10:27
blahboybaz left10:29
gxt left10:30
queip left10:31
minsec joined10:42
queip joined10:43
inkbottle joined10:47
shush joined10:47
POQDavid left10:48
zebrag left10:48
minsec left10:48
pikapika left10:48
nikivi left10:48
acetakwas left10:48
tiin57 left10:51
shush left10:52
nikivi joined10:53
pikapika joined10:53
acetakwas joined10:54
tiin57 joined10:55
minsec joined11:00
POQDavid joined11:05
Guest20 joined11:12
VectorX left11:17
ShapeShifter499 left11:21
tiin57 left11:21
ShapeShifter499 joined11:21
danilam joined11:23
dynetrekk left11:23
dynetrekk joined11:24
dionysus69 joined11:24
tiin57 joined11:25
ShapeShifter499 left11:25
ShapeShifter499 joined11:25
flashmozg left11:26
jaziz joined11:27
Lope joined11:29
Lope I've created a new git repo11:29
with git init. It seems to be working fine, did a commit to master.11:29
when I run git status, it shows that I'm on master.11:29
but if I run `git branch` it returns nothing!?11:29
jaziz1 left11:29
Lope 0 return value and no output?!?11:30
osse !repro11:30
gitinfo [!transcript] Please paste (using https://gist.github.com/ or similar) a transcript ( https://git.io/viMGr ) of your terminal session so we can see exactly what you see11:30
amcsi joined11:30
ikke git branch -a?11:30
And was the commit succesful?11:31
Lope osse, ikke: my bad. I had deleted and re-created the .git dir a few times.11:33
I had not committed to it this time.11:33
That's why git branch didn't return anything.11:33
ikke makes sense11:33
the branch gets created after the first commit11:33
Lope ikke, okay thanks, I figured :)11:34
flashmozg joined11:35
jabster28 joined11:35
Lope Is there some nice companion app for git that will do an automagic commit every time a file changes?11:36
selckin we call it human11:36
Jookia Lope: generally you want to have your commits be meaningful changes11:37
Lope cool, where can I get it? :)11:37
ikke Lope: from Human Resources :P11:37
danilam left11:38
Lope ikke, what kind of repo is that?11:38
ikke it's an enterprise product11:38
Jookia the undo feature of your editor is pretty good11:38
Lope It's for a program that's buggy. It crashes sometimes, so I save often. So far it hasn't corrupted the work-file but if it does, that would be pretty terrible.11:38
I literally save whenever I remember to, like whenever I do a good change.11:39
ikke You can script something with inotify-wait11:39
Lope It would be nice to use inotify-wait yeah. I was just wondering if such a thing already exists.11:39
ikke I'm not aware of anything11:40
Lope cool, yeah, will be quite trivial to make a bash script do it.11:40
osse while true; do git commit -m "Autocommit" file; done11:41
will probably max out a core, but who cares11:41
oh, add >/dev/null 2>&111:41
ikke trivial to add an inotify-wait in there11:42
osse (no I am not serious (but yes it would probably work))11:42
Lope haha, I would never ever do that. But thanks :)11:42
Jookia Lope: you sure git is the right tool for this? maybe there's something better that could use hardlinks on your OS or something11:44
selckin how is that going to help, he needs a copy11:45
Lope git is definitely the right tool.11:49
gotta reboot etc. Thanks guys11:51
Have a great day! :)11:51
Lope left11:51
tiin57 left11:51
rcoote joined11:53
tonythomas joined11:54
tiin57 joined11:54
bolovanos joined11:57
va5c0 joined11:58
va5c0 left11:58
Eryn_1983_FL left12:01
flashmozg Given a commit range, is there a simple way to "filter" out/xor it with a branch?12:03
TomyWork joined12:05
daurnimator left12:08
cliluw left12:08
stats4647 joined12:09
Mortir joined12:10
maxwilliamson joined12:12
stats4647 left12:14
wrobinso1 joined12:15
osse flashmozg: in what sense?12:16
a range foo..bar is the same as ^foo bar12:16
you can do ^foo ^baz bar12:16
ShapeShifter499 left12:16
ShapeShifter499 joined12:16
wolfshappen joined12:17
dqx joined12:18
flashmozg osse: well, suppose I have a foo..bar range that may or may not contain some commits from branch baz, suppose it's foo..boo, then I want to get boo..bar.12:18
DiffieHellman_ joined12:18
wrobinson left12:18
va5c0 joined12:18
DiffieHellman left12:19
va5c0_ joined12:20
thiago joined12:20
tiin57 left12:21
osse Sounds like foo ^baz bar is what you want then12:21
ugh12:21
^foo ^baz bar12:22
nbsande left12:23
va5c0 left12:23
tiin57 joined12:24
nbsande joined12:24
daurnimator joined12:24
flashmozg Hm, how to turn this into range?12:27
osse it *is* a range12:27
foo..bar is just syntactic sugar for ^foo bar12:27
flashmozg defined by two commits.12:27
osse not sure that's mathematically possible, unless you know for a fact they're all on a straight line12:28
hmm, maybe it is. too tired to draw graphs in my head12:29
you could do it by doing what I said, pick the oldest of those commits, and use the parent of that as the lower end of the range12:30
I think12:30
Cthalupa left12:33
Cthalupa joined12:33
va5c0_ left12:38
va5c0 joined12:39
va5c0 left12:40
daurnimator left12:42
va5c0 joined12:42
maxwilli- joined12:42
sgn left12:42
maxwilliamson left12:43
osse Hmm, I guess it's not a range, but a set.12:45
ikke <a, b]12:50
tiin57 left12:51
tiin57 joined12:54
osse But here it's more like <a, <b, c] so to speak12:55
Technodrome joined12:56
osse I don't think there exists a general d so that <d, c] would be the same12:56
minsec left12:57
gpanders joined12:59
osse flashmozg: the graph drawing in my head is complete. I am fairly sure that if baz forked off from bar before foo did, then it is not possible.13:00
I immediately withdraw that. My solution is "symmetric" so yo speak, so it doesn't make sense.13:01
jabster28 left13:01
flashmozg foo..bar are in the same branch13:01
that was forked from baz at some indeterminate point. (foo could be before or after that point).13:02
Anticom joined13:03
osse if foo is after that point then the range would be no different. if is the before that point then the range you want is simply baz..bar13:03
iffraff joined13:04
osse so the range is X..bar where X is the newest of the two merge bases of foo and bar, and baz and bar13:04
I'm curious why ^foo ^baz bar is not an acceptable answer13:05
amerigo left13:05
Xenguy left13:05
Jookia left13:05
osse leaving all the graphy shit up to Git seems like the best way.13:05
dionysus69 left13:06
flashmozg osse: need it for a tool that only accepts "start" and "end" commits.13:10
Jookia joined13:10
osse Boo13:13
flashmozg Not sure what you mean by the merge base of "foo and bar". foo and bar are the commits in the same branch, not individual branches. So I guess it's always foo. By newest, will rev-list --topo-order be enough?13:13
osse I'll rephrase13:14
the range is X..bar where X is the newest of foo and the merge-base of baz and bar13:14
merge-base = common ancestor. you can find that for any commits, not just branches13:15
rkta left13:15
rkta joined13:15
kupi joined13:17
tiin57 left13:21
tiin57 joined13:24
mellernoia joined13:24
daurnimator joined13:26
zulutango left13:31
zulutango joined13:31
jaziz left13:32
tgunr left13:35
pikapika left13:36
pikapika joined13:37
nikivi left13:37
POQDavid left13:37
acetakwas left13:37
pikapika left13:37
hqdruxn08 joined13:38
dionysus69 joined13:39
cr4y1 left13:40
cr4y1 joined13:40
clime left13:40
pikapika joined13:41
acetakwas joined13:41
flashmozg osse: yeah, I understood the merge-base part. It's the "newest" that's a bit ambiguous in Git.13:43
nikivi joined13:44
fuzzypixelz left13:49
fuzzypixelz joined13:50
tiin57 left13:51
minsec joined13:52
Raging_Hog joined13:52
tiin57 joined13:54
osse flashmozg: I meant topologically speaking13:55
POQDavid joined13:57
flashmozg Ok, thanks. That's what I was asking with "rev-list --topo-order".13:57
minsec left13:57
thm left13:58
osse flashmozg: find the merge-base of baz and bar, and then you can check which of those is newest with git merge-base --is-ancestor14:02
(not that rev-list --topo-order won't work, but this might be easier to parse)14:02
flashmozg osse: would 'git rev-list --topo-order -n 1 baz bar' return the desired commit directly without need for branching?14:04
Or you mean "easier for humans to parse"?14:04
forgot --no-walk14:05
osse i suspect that would return either baz or bar itself14:05
but I don't know14:05
Foxboron ag5514:05
wops14:05
geosmile joined14:06
zsoc joined14:10
zsoc left14:10
zsoc joined14:10
xelxebar left14:11
xelxebar joined14:11
Darcidride joined14:11
minsec joined14:14
dpflick joined14:15
minsec left14:19
srinidhi left14:20
VectorX joined14:21
tiin57 left14:21
fuzzypixelz left14:23
fermion0 joined14:24
fermion0 left14:24
danilam joined14:25
tiin57 joined14:25
oprypin left14:26
rcoote left14:26
oprypin joined14:26
srinidhi joined14:26
rcoote joined14:27
rcoote left14:28
flashmozg left14:28
onizu joined14:31
CodeSlingerPaul joined14:31
rcoote joined14:33
Anticom left14:35
trinityblade joined14:36
minsec joined14:36
minsec left14:42
Darcidride left14:43
jwest joined14:43
jwest left14:44
AnAverageHuman joined14:44
waveclaw joined14:45
plitter joined14:49
rcoote left14:49
vdamewood joined14:49
tiin57 left14:51
tiin57 joined14:55
minsec joined14:57
jabster28 joined14:58
bolovanos left14:58
herren joined14:58
minsec left15:01
jabster28 left15:03
dionysus69 left15:05
jabster28 joined15:09
iffraff left15:09
fuzzypixelz joined15:12
fuzzypixelz left15:12
fuzzypixelz joined15:12
ShapeShifter499 left15:12
gpanders left15:13
jabster28 left15:14
Newami joined15:15
minsec joined15:17
Newami left15:18
tiin57 left15:21
Darcidride joined15:22
sweatsuit left15:22
minsec left15:23
rsx joined15:23
sweatsuit joined15:23
AnAverageHuman left15:23
tiin57 joined15:25
gpanders joined15:25
flashmozg joined15:26
jabster28 joined15:27
danilam left15:29
fachinformatiker left15:33
AnAverageHuman joined15:35
jelmer left15:36
vdamewood left15:36
tiin57 left15:36
tiin57 joined15:37
k_sze left15:37
fachinformatiker joined15:37
fachinformatiker left15:37
fachinformatiker joined15:37
k_sze joined15:38
minsec joined15:41
jabster28 left15:43
dionysus69 joined15:46
minsec left15:46
iskander joined15:48
superbolide joined15:49
iskander- left15:50
Guest20 left15:50
tiin57 left15:51
jabster28 joined15:53
tiin57 joined15:54
Muimi_ joined15:55
Muimi_ left15:55
relipse joined15:58
Muimi left15:58
cloud69 joined15:59
danilam joined15:59
sgn joined16:00
royal_screwup21 joined16:01
flashmozg left16:02
minsec joined16:02
sudoforge joined16:03
vdamewood joined16:03
Wetmelon joined16:05
jabster28 left16:05
minsec left16:07
Jackneill left16:07
dionysus69 left16:10
iskander left16:11
fuzzypixelz left16:11
yohnnyjoe joined16:13
va5c0 left16:13
Jackneill joined16:14
Cyan22 joined16:14
royal_screwup21 left16:16
royal_screwup21 joined16:16
Trieste left16:21
dionysus69 joined16:21
tiin57 left16:21
samuelbernardo left16:23
tiin57 joined16:25
otisolsen70 joined16:26
minsec joined16:26
gast0n joined16:27
bn_work joined16:30
minsec left16:31
jabster28 joined16:33
clime joined16:36
justanotheruser joined16:39
tonythomas left16:40
minsec joined16:45
iskander joined16:48
dionysus69 left16:48
minsec left16:50
tiin57 left16:51
causa_sui to revert a merge commit, I have to pass a parent commit "number". I don't understand what this number signifies or how to know what number I need to pass in here. I thought I would give a commit hash16:52
Technodrome left16:52
Cyan22 left16:52
LDerJim left16:53
thiago causa_sui: don't revert merges16:54
forget it16:54
tiin57 joined16:55
LDerJim joined16:55
Technodrome joined16:55
Deknos left16:56
causa_sui what does the -m switch to a revert signify?16:56
ikke causa_sui: in case you want to revert a merge request16:56
it tells git what you consider the main line, so that it know what to diff against16:57
causa_sui ikke: yes, but what is the argument? see my question above16:57
ikke It's the parent number16:57
Guest20 joined16:57
causa_sui "number"?16:57
ikke parents are ordered16:57
so 1st or 2nd parent16:57
causa_sui how can I find the ordering?16:57
ikke The branch being merged into is always the first parent16:58
while the branch being merged would be the 2nd parent16:58
sentinal8473 joined16:58
Maxattax joined16:59
causa_sui so I should always pass '-m 2' when reverting a merge? o_o16:59
ikke no, in almost all cases, you want -m 116:59
causa_sui alright, here goes17:00
ikke because the first parent is the main line17:00
basically, you specify the changes of which parent you want to keep17:00
causa_sui that did it, thank you17:01
still scratching my head about why I would need something else than that but hopefully I won't be in this situation again any time soon :D17:01
ikke git supports merges with more then 1 parent (octopus-merges)17:01
more then 2 parents*17:02
flashmozg joined17:02
rfuentess left17:03
fachinformatiker left17:03
Darcidride left17:04
danilam left17:05
amcsi left17:06
sentinal8473 left17:06
fuzzypixelz joined17:06
minsec joined17:06
fachinformatiker joined17:07
fachinformatiker left17:07
fachinformatiker joined17:07
sudomann joined17:09
sudomann I want to delete the changes of my last commit. There are unstaged changes in my working tree. Is dropping the last commit the right thing to do17:09
I want to keep my unstaged changes, just discard the last commited changes17:10
minsec left17:11
trinityblade left17:11
causa_sui sudomann: revert HEAD?17:11
de-vri-es left17:11
sudomann ahh yes the command i need17:13
thank you17:13
ikke revert creates a new commit fyi17:13
royal_screwup21 left17:13
royal_screwup21 joined17:13
andytoshi causa_sui: git consistently pretends like "master" is no different from any other branch, so there are a lot of things like -m1 where realistically you would never need anything different17:14
but you gotta specify it17:14
and in this case, i think it's nice because it's otherwise nonobvious what "git revert" on a merge commit would actually do17:14
causa_sui ok, I think I kinda get it17:15
andytoshi but having said that ... in this case i would probably just "manually" make a revert commit17:15
by doing "git checkout <commit i want to go back to> -- ." in the root17:15
and committing that17:15
samuelbernardo joined17:15
andytoshi well, *i'd* do it using git-read-tree because i'm nuts17:15
ikke git does not even pretend master is not different17:15
to git, there is nothing special about master17:16
causa_sui andytoshi: why not revert the merge commit? it had stuff in it that we never ever want to be in that branch17:16
andytoshi right, sorry, "pretend it's not different" is not a good way to say what i meant17:16
which was that in practice, people treat "master" (and "origin") specially but git does not17:16
ikke right17:16
imMute ikke: the first commit in an empty repo will create a "master" branch. ;)17:17
andytoshi causa_sui: reverting the merge commit is exactly what you want to do. but the reason you might want to do it "manually" is because then you don't need to understand the semantics of "git revert" on merge commits :)17:17
causa_sui ok. well, I did the revert on the merge commit, and it seems everything is fine17:17
ikke Yes, there are some defaults17:17
andytoshi causa_sui: cool, sounds like you're set17:18
oprypin left17:18
causa_sui :)17:18
ikke But otherwise, there is nothing special17:18
madewokherd joined17:18
Haohmaru left17:20
ikke git init && echo 'ref: refs/heads/foobar' >git/HEAD17:20
tiin57 left17:21
ikke maybe I'll make foobar my new default branch :P17:21
tiin57 joined17:25
oprypin joined17:25
BrunoSpr joined17:27
royal_screwup21 left17:30
minsec joined17:30
royal_screwup21 joined17:30
Raging_Hog left17:32
de-vri-es joined17:33
minsec left17:34
royal_screwup21 left17:35
royal_screwup21 joined17:35
va5c0 joined17:39
txtsd joined17:42
gxt joined17:42
Gustavo6046 left17:44
minsec joined17:44
Darcidride joined17:46
Gustavo6046 joined17:46
amcsi joined17:47
flashmozg left17:48
chele left17:49
minsec left17:49
tiin57 left17:51
shush joined17:51
tiin57 joined17:54
stats4647 joined17:59
yohnnyjo1 joined18:03
orbyt_v7 joined18:03
PaddyF joined18:03
Guest20_ joined18:04
mirrorbird joined18:04
stats4647 left18:04
amcsi left18:04
OnkelBlade left18:04
Guest20 left18:05
yohnnyjoe left18:06
mirrorbird left18:07
pac1 joined18:08
Narrat joined18:10
arcatech joined18:11
minsec joined18:11
stats4647 joined18:11
superbolide left18:12
superbolide joined18:12
Guest20_ left18:15
minsec left18:15
stdedos joined18:16
rustyshackleford left18:18
jimklimov1 left18:18
jimklimov joined18:18
jabster28 left18:19
tiin57 left18:21
tiin57 joined18:25
trinityblade joined18:26
rustyshackleford joined18:28
minsec joined18:29
jimklimov1 joined18:29
jimklimov left18:30
howdoi joined18:32
superbolide left18:32
superbolide joined18:33
minsec left18:34
rsx left18:34
Iarfen joined18:35
nomadicmathmo joined18:35
Guest20 joined18:35
Iarfen hI!18:36
Technodrome left18:37
trinityblade left18:39
TomyLobo joined18:40
Blukunfando left18:40
Iarfen I've a merge conflict inside Bitbucket, but here at local when I pull in order to have the merge conflict git says me "Already up-to-date", which commands I need for this case?18:40
nomadicmathmo1 joined18:40
ikke You need to do the same merge that bitbucket is trying to perform18:41
Iarfen how I do that?18:41
ikke well, check bitbucket what branches are being merged18:41
oatmealraisin joined18:42
Wetmelon left18:42
TomyWork left18:43
nomadicmathmo left18:45
nomadicmathmo1nomadicmathmo18:45
dude187 left18:46
Guest20 left18:47
jabster28 joined18:49
fuzzypixelz_ joined18:50
jnavila joined18:50
fuzzypixelz_ left18:50
Betal joined18:50
fuzzypixelz_ joined18:50
PaddyF left18:50
Iarfen ikke: I receive from git: "already up to date"18:50
minsec joined18:51
tiin57 left18:51
fuzzypixelz left18:51
fuzzypixelz_fuzzypixelz18:51
fuzzypixelz left18:52
thiago the commands you're issuing don't match what bitbucket is doing18:52
superbolide left18:52
thiago or the commit you're starting from doesn't18:52
fuzzypixelz joined18:52
superbolide joined18:52
tiin57 joined18:54
ikke You need to merge18:54
not pull18:54
cliluw joined18:56
minsec left18:56
fuzzypixelz left18:56
jabster28 left18:58
jabster28 joined18:59
sudomann_ joined18:59
hnOsmium0001 joined19:02
sudomann left19:03
superbolide left19:04
superbolide joined19:04
Wetmelon joined19:05
LetoThe2nd left19:05
stdedos left19:07
sudoforge left19:08
minsec joined19:11
archwizard left19:11
jabster28 left19:12
archwizard joined19:12
BrunoSpr hi all19:12
If I have 2 computers and want to use both with github do I need to copy the ssh code to the other computer only?19:13
the ssh-key is on my other laptop how can I now use the main computer to access github?19:14
ikke you can either copy the ssh key, or generate another one19:15
minsec left19:15
wootehfoot joined19:16
BrunoSpr ah ok to generate another one is easier I think thanks very much ikke19:18
tiin57 left19:21
tiin57 joined19:25
otisolsen70_ joined19:31
blahboybaz joined19:32
dfee joined19:32
dmlloyd left19:33
otisolsen70_ left19:34
archwizard left19:34
archwizard joined19:34
otisolsen70 left19:35
john2gb left19:36
Achylles joined19:36
minsec joined19:38
john2gb joined19:39
BrunoSpr ikke is it better to use a password together with the ssh-key?19:41
no problem if I leave it empty?19:41
ikke Best practice is to use a passphrase for the key19:41
BrunoSpr ah ok19:41
thx19:41
ikke Note that you can use ssh agents to cache the unencrypted key19:41
BrunoSpr oh? I am just a beginner19:42
can I create a new ssh-key if I like19:43
ikke sure, as long as the system where you want to push it knows it19:43
minsec left19:43
ikke note that you do not need to generate a new key if you want to add a passphrase19:43
voidSurfr joined19:43
BrunoSpr ah ok how to add a passphrase now?19:44
ikke ssh-keygen -p19:44
voidSurfr left19:45
Achylles left19:48
dude187 joined19:48
royal_screwup21 left19:48
royal_screwup21 joined19:48
tiin57 left19:51
vicfred left19:53
royal_screwup21 left19:53
tiin57 joined19:54
minsec joined19:56
apus left20:00
archwizard left20:00
apus joined20:00
archwizard joined20:01
minsec left20:01
riksteri left20:02
dpflick_ joined20:02
yohnnyjoe joined20:03
yohnnyjo1 left20:05
dpflick left20:05
darkbit left20:05
luke-jr left20:09
luke-jr joined20:10
vdamewood left20:12
antranigv left20:12
antranigv joined20:14
dflick__ joined20:18
tiin57 left20:21
dpflick_ left20:21
minsec joined20:22
FFY00 left20:24
fandre1986 joined20:24
FFY00 joined20:25
tiin57 joined20:25
archwizard left20:26
archwizard joined20:26
FFY00 left20:27
minsec left20:27
trinityblade joined20:28
royal_screwup21 joined20:34
blahboybaz left20:34
shush_ joined20:35
duderonomy joined20:35
yohnnyjoe left20:35
shush left20:39
royal_screwup21 left20:39
onizu left20:40
minsec joined20:40
mellernoia left20:41
herbergalarga joined20:42
mowcat joined20:42
jabster28 joined20:42
Jitta joined20:44
archwizard left20:44
archwizard joined20:45
minsec left20:45
herbergalarga left20:47
gpanders left20:47
downunder_ left20:48
tiin57 left20:51
jabster28 left20:52
archwizard left20:53
archwizard joined20:53
tiin57 joined20:55
jabster28 joined21:00
minsec joined21:02
archwizard left21:02
archwizard joined21:03
gpanders joined21:05
minsec left21:07
jabster28 left21:09
jabster28 joined21:09
sord937 left21:10
royal_screwup21 joined21:10
blahboybaz joined21:10
archwizard left21:10
archwizard joined21:11
fandre1986 left21:15
royal_screwup21 left21:15
jjakob joined21:18
va5c0 left21:19
bn_work left21:20
tiin57 left21:21
dmlloyd joined21:22
minsec joined21:23
Maxattax left21:23
tiin57 joined21:24
SwiftMatt joined21:26
minsec left21:27
jabster28 left21:28
jabster28 joined21:28
va5c0 joined21:29
jjakob left21:32
sgn left21:34
sgn joined21:35
calcul0n_ joined21:36
SwiftMatt left21:37
jabster28 left21:37
jabster28 joined21:37
jjakob joined21:37
va5c0 left21:37
trinityblade left21:38
crose left21:38
calcul0n left21:39
Xenguy joined21:41
va5c0 joined21:41
minsec joined21:43
va5c0 left21:43
royal_screwup21 joined21:44
yonder joined21:44
va5c0 joined21:44
archwizard left21:46
OnkelBlade joined21:46
archwizard joined21:46
shush_ left21:46
jabster28 left21:46
jabster28 joined21:47
shush joined21:47
minsec left21:48
royal_screwup21 left21:48
va5c0 left21:49
va5c0 joined21:50
tiin57 left21:51
va5c0 left21:51
shush left21:51
va5c0 joined21:52
archwizard left21:53
archwizard joined21:54
tiin57 joined21:54
jabster28 left21:56
jabster28 joined21:56
archwizard left22:01
archwizard joined22:01
archwizard left22:03
archwizard joined22:03
wootehfoot left22:03
archwizard left22:05
archwizard joined22:05
jabster28 left22:05
jabster28 joined22:06
archwizard left22:07
minsec joined22:07
archwizard joined22:07
kupi left22:07
archwizard left22:08
superbolide left22:08
archwizard joined22:08
mirrorbird joined22:09
OnkelBlade left22:10
archwizard left22:10
archwizard joined22:10
cloud69 left22:11
minsec left22:12
archwizard left22:12
archwizard joined22:13
archwizard left22:15
archwizard joined22:15
archwizard left22:17
shush joined22:17
archwizard joined22:17
shush left22:18
jnavila left22:19
archwizard left22:19
archwizard joined22:20
royal_screwup21 joined22:21
tiin57 left22:21
archwizard left22:22
archwizard joined22:22
archwizard left22:23
archwizard joined22:23
va5c0 left22:23
DevAntoine left22:24
tiin57 joined22:24
DevAntoine joined22:24
archwizard left22:25
archwizard joined22:25
va5c0 joined22:25
va5c0 left22:25
Jookia left22:27
archwizard left22:27
va5c0 joined22:27
archwizard joined22:27
archwizard left22:28
Jookia joined22:28
minsec joined22:28
DevAntoine left22:29
va5c0 left22:32
minsec left22:33
dqx left22:35
Xenguy left22:40
Xenguy joined22:40
Darcidride left22:40
andytoshi is there a way, given two commits, to find the merge base of both which is in the past of them22:41
like, if I have a diamond which has a commit A, with two parents B1, B2, which in turn both have parent C22:41
if I try merge_base(A, B1) I'll get B122:42
but i'd like to get C22:42
"the most recent ancestor of B1 that was in A's history, not including B1's fork"22:42
imMute git merge-base A^1 A^222:43
jabster28 left22:43
imMute A^1 is the first parent of A, and A^2 is the 2nd parent of A.22:43
andytoshi well, in my case A is actually just master22:43
so it'll be indefinitely far ahead22:43
jabster28 joined22:43
andytoshi and A^, A^^ etc will have the same problem22:43
Hello71 this question sounds poorly defined22:45
imMute andytoshi: A^^ and A^2 are not the same thing.22:46
andytoshi imMute: i know22:46
imMute did you try my suggest?22:46
Hello71 maybe you want git merge-base A^1 A^2 B122:46
imMute suggestion*22:46
Hello71 otherwise your question is not clear22:46
andytoshi imMute: that will work if A is the commit that merges B1 and B222:46
but not if A is any descendent of that22:47
Hello71 that's what you said though22:47
imMute andytoshi: in your example, it is.22:47
Hello71 maybe you intended to say ancestor22:47
but you said parent22:47
andytoshi it my question i did not say parent22:47
in the examlpe i did22:47
i'm sorry, i will not give examples anymore when asking things here22:47
shush joined22:48
imMute can you restate the question please?22:48
andytoshi if I have two commits A and B, i want to find the closest ancestor of B which is in the first-parent history of A22:48
i'm not sure what the best term for "first-parent history" is22:48
imMute I'm not sure if that's possible. why does it have to be the first parent history and not just all the history of A?22:49
Xenguy left22:49
andytoshi because if B is later merged into A, then if i search the whole history of A22:49
i'll just get B back22:49
i'm trying to get the history of a feature branch in a way that will continue to work even after it's been merged into the trunk22:49
Hello71 man git-merge-base22:50
gitinfo the git-merge-base manpage is available at https://gitirc.eu/git-merge-base.html22:50
Hello71 your explanation is still not very clear. maybe you can get better help reading the man page22:50
shush left22:50
andytoshi god it's like i'm on ##c22:50
shush joined22:50
andytoshi if i look at the history of A, taking only the first parent at each merge, i will get a linear list of commits22:51
given a commit B, i want to find its closest ancestor which is in that list22:51
tiin57 left22:51
imMute Hello71: the question makes sense to me now. it's the simple git merge-base master feature-branch but works even after feature-branch is merged into master.22:51
works meaning returns the same result.22:52
minsec joined22:52
dqx joined22:52
andytoshi it's possible --fork-point will do what i want, it's named suggestively22:52
but the description does not sound encouraging22:52
imMute andytoshi: that's w hat I thought too but it doesn't seem to be it. looks like it only uses the reflog22:52
jabster28 left22:52
bryan92 joined22:52
andytoshi yeah, that's a pretty weird feature22:52
jabster28 joined22:53
andytoshi i guess most options in git are like this :P they solve a veery particular problem22:53
dqx left22:53
tiin57 joined22:55
minsec left22:56
theoceaniscool left22:57
andytoshi i'm having a lot of trouble re-stating this without talking about first parents, at least in a way that doesn't sound intractible22:57
e.g., given commits A and B, i'd like an ancestor of A such that every descendant of that ancestor is an ancestor of B22:58
no that's still not right, that's the same as merge-base22:58
i'd like an ancestor such that every descendent of every ancestor is an ancestor of B :P22:59
but in practice really, i just want the intersection point between A's first-parent history and B's first-parent history22:59
most recent intersection point*22:59
Hello71 i still don't see how this isn't solved by git merge-base A^* B^*, notwithstanding that ^* doesn't exist23:02
andytoshi Hello71: because where i typed A in my example, i actually meant some arbitrary descendent of A23:02
if i could find the actual merge point of B into master, i could use your solution23:04
but all i have is the current position of master23:04
but i think "the actual merge point of B into master" isn't well-defined23:05
d-fence left23:05
fachinformatiker left23:05
andytoshi though maybe "the first descendent of B which is a merge commit" might work in practice on the repos i'm looking at23:06
jabster28 left23:06
jabster28 joined23:07
d-fence joined23:07
orbyt_v7 left23:07
riceandbeans left23:10
fachinformatiker joined23:11
fachinformatiker left23:11
fachinformatiker joined23:11
va5c0 joined23:11
va5c0 left23:11
minsec joined23:11
va5c0 joined23:11
herren left23:11
royal_screwup21 left23:12
royal_screwup21 joined23:12
Hello71 "the most recent merge involving B" is well-defined but potentially time-consuming to compute23:14
CodeSlingerPaul left23:14
andytoshi i think i've got it, iterating through the first parents of master until i find one which B is not an ancestor of. (this is n^2 in the number of descendents of B, but i'm not certain that i can do better)23:15
then once i get that, i take the merge base with B23:15
sudomann joined23:15
minsec left23:16
mowcat left23:17
royal_screwup21 left23:17
sudomann_ left23:18
tiin57 left23:21
terrorjack left23:23
terrorjack joined23:24
tiin57 joined23:24
jstein left23:24
vikonen left23:25
vikonen joined23:25
calcul0n_ left23:27
al3x27 left23:28
Technodrome joined23:30
jabster28 left23:30
BrunoSpr left23:31
minsec joined23:32
Mortir left23:34
Kobaz left23:35
mfiano left23:35
jabster28 joined23:35
_Vi left23:36
minsec left23:36
jabster28 left23:44
jabster28 joined23:44
schweby left23:44
Mortir joined23:45
schweby joined23:46
Blukunfando joined23:50
tiin57 left23:51
jabster28 left23:51
jabster28 joined23:51
chachasmooth left23:52
chachasmooth joined23:52
royal_screwup21 joined23:52
tiin57 joined23:54
royal_screwup21 left23:57
jabster28 left23:58
jabster28 joined23:58
amahl left23:59
minsec joined23:59

Logs Search ←Prev date Next date→ Channels Documentation