IRCloggy #git 2021-04-13

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.

2021-04-13

florekm__ left00:00
fission6 left00:01
florekm__ joined00:01
jesseTree left00:03
florekm left00:04
fax left00:08
ikwyl6 joined00:09
jesseTree joined00:10
tiin57 left00:10
thebope left00:11
jaziz1 joined00:11
thebope joined00:11
calcul0n_ left00:12
tiin57 joined00:14
stats464_ left00:14
stats4647 joined00:14
florekm joined00:14
nsc_ left00:15
hexa- left00:16
thebope left00:16
sinhue joined00:16
shailangsa does anybody know if it's possible to search a git repo using a regular expression?00:16
tang^ !git-grep maybe?00:17
bah... try man git-grep00:17
gitinfo the git-grep manpage is available at https://gitirc.eu/git-grep.html00:17
florekm__ left00:17
shailangsa how about github?00:18
tang^ you'd have to ask in #github about that00:18
hexa- joined00:19
florekm left00:19
ephemer0l left00:21
fission6 joined00:28
mobidrop left00:28
florekm joined00:30
mobidrop joined00:31
florekm__ joined00:32
duderonomy left00:32
sinhue left00:33
florekm left00:35
vicfred joined00:38
vicfred left00:40
tiin57 left00:40
thebope joined00:41
FFY00_ left00:42
FFY00_ joined00:43
tiin57 joined00:44
thebope left00:46
florekm joined00:46
vicfred joined00:47
florekm__ left00:49
florekm__ joined00:50
florekm left00:53
ikwyl6 left00:55
florekm joined00:56
florekm__ left01:00
thebope joined01:00
florekm__ joined01:00
florekm left01:03
sinhue joined01:03
DevAntoi_ joined01:05
jesseTree left01:05
thebope left01:05
ikwyl6 joined01:06
florekm__ left01:06
DevAntoine left01:06
computeiro left01:08
Codaraxis_ joined01:08
crose left01:09
krofe left01:09
tiin57 left01:11
shush left01:12
Codaraxis__ left01:13
shush joined01:13
florekm joined01:14
tiin57 joined01:14
ephemer0l joined01:17
sinhue left01:17
tang^ left01:18
shush left01:18
florekm__ joined01:21
ferdna joined01:21
florekm left01:24
krkini left01:25
mud left01:26
kini joined01:26
Benzi-Junior joined01:28
florekm joined01:28
florekm__ left01:31
hanneso left01:32
stats464_ joined01:32
mud joined01:33
APic joined01:33
stats4647 left01:35
thebope joined01:35
ferdna left01:35
florekm__ joined01:39
tiin57 left01:40
sinhue joined01:41
florekm left01:41
florekm__ left01:44
shush joined01:44
tiin57 joined01:44
gearnode left01:44
fission6 left01:45
PJBoy left01:48
drbean_ joined01:50
zebrag left01:52
zebrag joined01:52
ikwyl6 left01:52
thebope left01:53
florekm joined01:53
florekm__ joined01:56
sinhue left01:57
sinhue joined01:58
florekm left01:59
shush left02:00
shush joined02:00
florekm__ left02:01
raven-au left02:03
arcatech left02:04
hanneso joined02:04
lawid left02:05
tiin57 left02:10
raven-au joined02:11
lawid joined02:11
florekm joined02:11
ikwyl6 joined02:12
florekm__ joined02:12
sinhue left02:14
tiin57 joined02:14
grimpeux joined02:15
florekm left02:16
lawid left02:16
thebope joined02:16
duderonomy joined02:21
grimpeux left02:25
florekm joined02:26
jesseTree joined02:27
causasui left02:29
florekm__ left02:29
sinhue joined02:29
florekm left02:32
wgrant left02:34
jesseTree left02:34
wgrant joined02:34
random_yanek left02:36
CryptoClub left02:36
Goplat joined02:37
CryptoClub joined02:40
florekm joined02:40
tiin57 left02:41
DevAntoi_ left02:41
random_yanek joined02:41
DevAntoine joined02:42
florekm__ joined02:43
sinhue left02:43
tiin57 joined02:44
Xenguy joined02:44
florekm left02:46
z8z joined02:47
devslash left02:48
FinnElija joined02:51
finn_elijaGuest4186802:51
FinnElijafinn_elija02:51
cbreak left02:53
mindCrime left02:54
Guest41868 left02:55
cbreak joined02:55
ferdna joined02:57
florekm joined02:58
xlei left02:58
howdoi left02:58
AlpineLlama left03:00
sinhue joined03:00
florekm__ left03:00
AlpineLlama joined03:01
florekm left03:03
mowcat left03:04
nsc joined03:04
CodeSlingerPaul left03:06
blahdodo left03:08
justan0theruser left03:08
tiin57 left03:10
Guest20 joined03:12
florekm joined03:12
Guest20 left03:13
tiin57 joined03:14
Guest20_ joined03:15
sinhue left03:15
florekm__ joined03:18
thebope left03:19
justanotheruser joined03:20
zebrag left03:21
florekm left03:22
Muimi joined03:24
florekm joined03:26
palooka_jock left03:29
florekm__ left03:30
haritz left03:32
haritz joined03:32
haritz left03:32
haritz joined03:32
palooka-jock joined03:32
ikwyl6 left03:36
Guest20_ left03:38
raven-au left03:40
florekm__ joined03:40
tiin57 left03:40
raven-au joined03:41
sinhue joined03:42
ikwyl6 joined03:43
florekm left03:43
tiin57 joined03:44
florekm__ left03:44
skered left03:48
blahdodo joined03:49
skered joined03:49
fulsiram_ left03:51
z8z left03:51
kini left03:52
Codaraxis_ left03:52
kini joined03:53
florekm joined03:56
xlei joined03:57
florekm__ joined03:57
sinhue left03:59
cd left04:00
bdeshi left04:00
fulsiram_ joined04:00
florekm left04:01
bdeshi joined04:01
tejr left04:02
florekm joined04:03
tejr joined04:03
arcatech joined04:04
ikwyl6 left04:06
florekm__ left04:06
arcatech left04:06
tiin57 left04:11
kiweun left04:11
ikwyl6 joined04:11
florekm__ joined04:12
jetchisel joined04:13
OnkelBlade left04:14
tiin57 joined04:14
florekm left04:15
OnkelBlade joined04:15
sinhue joined04:15
florekm__ left04:17
xissburg left04:20
stats464_ left04:21
hussam left04:21
stats4647 joined04:22
florekm joined04:26
Xenguy left04:27
sinhue left04:29
Furai left04:29
toolbox joined04:30
florekm__ joined04:31
Wetmelon joined04:34
ferdna left04:34
konsolebox joined04:35
florekm left04:35
tiin57 left04:40
florekm joined04:41
tiin57 joined04:44
florekm__ left04:44
thad_the_man left04:47
florekm__ joined04:48
Furai joined04:49
florekm left04:51
florekm joined04:55
florekm__ left04:58
gast0n left04:59
Dotz0cat_ joined05:00
stats4647 left05:01
madewokherd left05:01
fulsiram_ left05:01
Dotz0cat left05:02
snits left05:03
fulsiram_ joined05:03
ferdna joined05:04
florekm__ joined05:06
thiago left05:06
snits joined05:06
krofe joined05:07
sinhue joined05:08
florekm left05:09
florekm joined05:10
tiin57 left05:10
florekm__ left05:11
ikwyl6 left05:12
shush left05:12
sinhue left05:14
tiin57 joined05:14
ikwyl6 joined05:21
mike11 joined05:23
florekm__ joined05:24
sinhue joined05:25
mike11 hello all, a while ago, I learned about a git command that changes a commit contents, and makes the old hash somehow "refer" to the new modified commit. I don't remember the exact terminology, and I have been searching for this for a while and I couldn't find it.05:27
florekm left05:27
mike11 does my description ring a bell to any of you? or is my memory corrupted?05:27
florekm__ left05:28
ikwyl6 left05:30
stats4647 joined05:31
ikke mike11: (interactive) rebase?05:32
mike11 not really, because this changes the hashes of the edited commits and all its descendants...05:33
iirc, after doing it, git log displayed the same old hash with a special message between brackets indicating that the commit is just a "reference" (I don't remember the exact word) to another commit...05:34
ikke man git replace05:35
gitinfo the git-replace manpage is available at https://gitirc.eu/git-replace.html05:35
ikke I guess05:35
mike11 ahh, exactly, thank you very much!05:35
veegee left05:35
Hounddog joined05:36
edlou left05:36
mike11 left05:38
fulsiram_ left05:38
florekm joined05:41
tiin57 left05:41
ferdna left05:41
blue__penquin joined05:41
florekm__ joined05:42
blue__penquin left05:42
ikwyl6 joined05:43
tiin57 joined05:43
sinhue left05:44
Furai left05:44
sudoforge left05:45
florekm left05:45
ikke cliluw: seems like a bug, I'm bisecting it05:46
Furai joined05:46
APic left05:47
shush joined05:47
skered left05:49
stats4647 left05:52
Furai left05:54
AnAverageHuman left05:54
florekm joined05:56
Furai joined05:57
sinhue joined05:58
florekm__ left05:59
fulsiram_ joined06:00
florekm left06:01
florekm joined06:09
tiin57 left06:10
florekm__ joined06:11
vorona joined06:11
sinhue left06:12
kiweun joined06:12
florekm left06:13
tiin57 joined06:14
Wetmelon left06:14
florekm joined06:15
Goplat left06:16
kiweun left06:17
florekm__ left06:18
andy25225 left06:18
LetoThe2nd joined06:21
florekm__ joined06:25
APic joined06:26
osse TIL --output. Where's that documented?06:26
ah, in git log06:26
florekm left06:28
lemonade` left06:28
florekm joined06:29
andy25225 joined06:31
florekm__ left06:32
xrisovalantis joined06:35
florekm__ joined06:40
tiin57 left06:40
Lord_of_Life left06:41
Lord_of_Life joined06:42
florekm left06:43
tiin57 joined06:44
florekm joined06:45
fulsiram_ left06:46
fulsiram_ joined06:46
shush left06:47
sinhue joined06:48
florekm__ left06:48
CryptoClub left06:50
florekm left06:50
fulsiram_ left06:51
fulsiram_ joined06:52
CryptoClub joined06:54
cbreak left06:55
cbreak joined06:56
Betal left06:57
florekm joined06:57
fulsiram_ left06:59
sinhue left07:00
fulsiram_ joined07:01
thebiffman left07:01
jimmiehansson joined07:02
fulsiram_ left07:03
unluckyshrubbery left07:03
fulsiram_ joined07:04
durham_ left07:06
rcoote joined07:08
thebiffman joined07:10
tiin57 left07:11
Haohmaru joined07:12
selckin joined07:12
noidea joined07:13
dqx_ joined07:14
rsx joined07:14
tiin57 joined07:14
ikwyl6 left07:15
thebope joined07:16
florekm__ joined07:16
Hounddog left07:16
florekm left07:19
sord937 joined07:19
thebope left07:20
ikwyl6 joined07:22
flying_sausages joined07:23
veegee joined07:23
theoceaniscool joined07:29
florekm joined07:32
accesspoint joined07:33
accesspoint left07:34
florekm__ left07:36
led_belly left07:36
shush joined07:37
accesspoint joined07:38
Metalsutton joined07:39
bolovanos_ joined07:40
tiin57 left07:40
KeyJoo joined07:43
vorona left07:43
tiin57 joined07:44
gearnode joined07:48
stats4647 joined07:50
accesspoint left07:51
kristijonas left07:52
florekm__ joined07:55
wrobinson_ left07:58
florekm left07:59
wrobinson joined08:00
DevAntoine left08:00
amahl joined08:01
DevAntoine joined08:01
sord937 left08:02
pncl joined08:06
pncl_ joined08:06
pncl left08:06
pncl_ left08:06
thomas_25 left08:09
archpc- left08:09
thomas_25 joined08:10
tiin57 left08:10
archpc joined08:11
tolot joined08:11
ikwyl6 left08:12
chele joined08:13
kiweun joined08:13
tiin57 joined08:14
ikwyl6 joined08:15
amcsi_ joined08:16
kiweun left08:17
KeyJoo left08:19
kini left08:21
kini joined08:22
drbean_ left08:24
DevAntoine left08:24
DevAntoine joined08:24
florekm joined08:27
dslegend1 left08:28
angular_mike joined08:29
angular_mike is there a command to list files that were deleted on a branch (but not moved/renamed)?08:29
florekm__ left08:30
sinhue joined08:31
mat001_ left08:32
Mat001 left08:32
florekm left08:33
ikwyl6 left08:33
leixy joined08:35
leixy left08:37
stats4647 left08:38
nkuttler angular_mike: i think you can get that from diff --name-status08:38
ikwyl6 joined08:40
Amol__ joined08:40
tiin57 left08:40
Amol__ left08:41
Heisenberg joined08:41
AL13N_lappy joined08:41
AL13N_lappy if i do "git branch -d foo" on branches being something like "original -> foo -> master" , do i lose the commit of foo? (ancestor of master)? i kinda just want to branch(name) to go away without losing any commits on master08:43
osse AL13N_lappy: you will not lose any commits08:43
tiin57 joined08:44
AL13N_lappy osse: thanks08:44
angular_mike nkuttler: wouldnt that count files that werent present on the branch during commits as deleted?08:45
osse angular_mike: git log --name-only --diff-filter=D master..branch08:45
something like that08:45
can be made easier to parse08:45
oh, of course: git diff --name-only --diff-filter=D master...branch08:45
angular_mike osse: wouldn't that count moved/renamed files as deleted?08:45
jelmer left08:46
osse angular_mike: by default no08:46
jelmer joined08:46
osse rename detection is enabled by default since Git version {insert correct version here}08:46
calcul0n_ joined08:48
ARoxdale joined08:50
unluckyshrubbery joined08:50
john_johnk2 joined08:51
PJBoy joined08:51
florekm joined08:53
calcul0n_ left08:53
mozgalom joined08:54
calcul0n joined08:56
sinhue left08:56
florekm__ joined08:56
mozgalom left08:56
Guest1 joined08:57
ikke osse: man git-show also lists it08:58
gitinfo osse: the git-show manpage is available at https://gitirc.eu/git-show.html08:58
Guest1 left08:58
florekm left08:58
mozgalom joined08:59
Fan[m] left09:00
osse Indeed, I didn't search far enough09:01
ikke: did you find the culprit? My guess is there is a split between "log-like" logic and "cat-file-like" logic somewhere in show and that screws it up09:02
But if that's right then I would guess that bug has always been there09:02
metnel joined09:06
YoungFrog joined09:09
metnel left09:10
tiin57 left09:10
gigasu_shida left09:12
accesspoint joined09:13
tiin57 joined09:14
accesspoint left09:15
hololeap left09:16
thebope joined09:17
R2robot left09:18
AL13N_lappy when doing rebase -i; and i'm doing a fixup of 2 commits, one of them has a tag and then loses the tag... i get why... but is there a way to keep the existing tag, since it's a fixup and not something else?09:18
vicfred left09:19
ikke osse: not yet09:19
AL13N_lappy oh? "yet"?09:19
ikke osse: at least v2.20.5 is working09:19
AL13N_lappy: not responding to you09:20
AL13N_lappy ikke: sorry09:21
osse Not everything is about you! GOSH!09:21
thebope left09:21
osse (tee hee)09:22
ikke AL13N_lappy: AFAIK, there's no builtin option for rebase09:22
AL13N_lappy i'm sorry, it's just that "ikke" in my language means "myself" and so i got confused09:22
ikke: ok, thx09:22
ikke AL13N_lappy: in my language as well ;-)09:23
AL13N_lappy myeah, i figured09:23
apo and in mine! Almost! :p09:23
and my axe.09:23
ikke It could also have been Norwegian09:23
Haohmaru what an unbelievable coincidence09:23
shicks255 left09:23
AL13N_lappy i'm guessing this is not such a coincidence :-)09:24
shicks255 joined09:24
Haohmaru it's not, most h4x0rz are from scandinavia09:24
osse and Danish'09:24
Haohmaru <close_enough.jpg>09:24
calcul0n left09:25
AL13N_lappy so, i guess a belgian, dutch, german, norwegian, danish, (and some others) walk into a #git IRC channel,... etc...09:25
osse ikke: is that the basis for your nickname?09:25
just "myself" ?09:25
ikke Yes, not very original09:26
Haohmaru very selfish09:26
AL13N_lappy he must be dutch :-)09:26
osse hmm09:26
dimi1947 joined09:26
osse that never even occured to me09:26
I knew that ik means I. And I even lived there for five months09:27
AL13N_lappy ikke is a dialect form09:27
calcul0n joined09:27
osse oh09:27
ikke Yes, ikke is more colloquial09:27
florekm joined09:28
osse If ik(ke) means "I", then what's dutch for "me" ?09:28
flying_sausages_ joined09:28
ikke Mij09:28
AL13N_lappy "mij" or even "me"09:28
osse ah09:28
snits left09:29
AL13N_lappy "me, myself and I" => "mij, mezelf en ik"09:29
flying_sausages left09:29
AL13N_lappy or even "me, mezelf en ikke" :-)09:29
florekm__ left09:31
AL13N_lappy anyway, thanks all for the tangent and answer to my question :-) ; sorry to have interrupted the conversation09:31
osse Me Myself I is the title of a song by Joan Armatrading, and the main riff from that song is sampled by The Prodigy on their song Full Throttle09:31
hmm, not a sample. more like jsut the same melody09:32
Might be a coincidence, but I doubt it09:32
shush left09:40
tiin57 left09:40
tiin57 joined09:44
florekm__ joined09:44
florekm left09:47
snits joined09:48
HeisenbergCIAZ09:49
eblip joined09:51
eb0t_ joined09:51
florekm joined09:52
eb0t left09:52
zrhoffman left09:52
krumelmonster joined09:52
def_jam left09:52
sinhue joined09:53
kristijonas joined09:54
cousteau joined09:54
florekm__ left09:55
cousteau Hi! Is it possible to rename an annotated tag?09:55
florekm__ joined09:55
cousteau I created a tag v0.2_tentative which I intend to rename as v0.2 once I'm sure that's the definitive version09:56
Metalsutton left09:56
Habbie cousteau, a commit can have multiple tags; you can delete tags; i'm not sure you can rename them09:56
florekm left09:57
Rashad joined09:58
cousteau OK, option 2 is to create a new annotated tag, copy-paste the description of the old tag, and delete the old tag09:58
krumelmonster Hi. Is there a way to configure a tracked file to not be updated on add -u?09:58
sinhue left09:58
cousteau But that's, like, too much work... (not really, but it feels awkward)09:58
ikwyl6 left09:59
zrhoffman joined09:59
amcsi_ left09:59
krumelmonster Documentation says that already tracked files are not affected by .gitignore (which I think is somewhat counterintuitive in this regard)10:00
KeithAdams left10:01
m1dnight_sometesttempnick10:01
sometesttempnickm1dnight_10:02
hnOsmium0001 left10:03
KeithAdams joined10:05
osse hmm, seems git tag doesn't have the same niceness for specifying the message as git commit doesa10:08
stfn1stfn10:09
florekm joined10:10
raven-au left10:10
tiin57 left10:10
raven-au joined10:11
Habbie krumelmonster, no10:12
florekm__ left10:13
kiweun joined10:13
tiin57 joined10:14
ikwyl6 joined10:14
computeiro joined10:15
mozgalom left10:16
Benzi-Junior left10:16
wender joined10:17
zebrag joined10:17
kiweun left10:18
cody joined10:18
R2robot joined10:19
computeiro left10:20
florekm__ joined10:21
goodburner left10:21
goodburner joined10:22
Sc0tty- joined10:24
florekm left10:25
computeiro joined10:25
wender left10:27
liefer joined10:27
kini left10:31
kini joined10:32
mozgalom joined10:35
stats4647 joined10:36
Rashad left10:38
tiin57 left10:40
mozgalombomb-on10:44
john_johnk2 left10:44
tiin57 joined10:44
ikke osse: I fail to reproduce the issue when I build git myself10:45
oh, maybe you need to specify something from the index10:45
rapiz joined10:52
ikke osse: seems like you're right, it's not working on old versions either10:53
liefer left10:55
florekm joined10:55
krofe left10:56
liefer joined10:57
florekm__ left10:58
sinhue joined10:59
florekm left11:01
igemnace left11:02
CryptoClub left11:04
ikke cliluw: So seems like this might have never worked. The file is created, but the output is not redirected11:04
grimpeux joined11:04
CryptoClub joined11:06
dimi1947 left11:08
amcsi joined11:09
tiin57 left11:10
ikwyl6 left11:12
tiin57 joined11:13
thebope joined11:19
accesspoint joined11:20
ikwyl6 joined11:20
rustyshackleford left11:23
_noblegas joined11:24
grimpeux left11:25
john_johnk2 joined11:26
lbracher joined11:26
florekm joined11:28
thebope left11:28
grimpeux joined11:29
grimpeux left11:30
sinhue left11:31
accesspoint left11:33
dviola left11:33
amcsi_ joined11:33
Rh0nda joined11:35
cousteau left11:36
amcsi left11:36
dslegends joined11:36
Rhonda left11:37
blahdodo left11:37
tiin57 left11:40
ikwyl6 left11:42
drbean_ joined11:44
tiin57 joined11:44
thblt joined11:46
krumelmonster left11:47
ikwyl6 joined11:48
thblt Is there a way to hook on clone to transform the remote URL? I use a lot of publicly-readable repos for which I fetch over HTTPS but push over SSH. I have a stupid script [1] to set the --push url, but I wonder if I can automate this directly with git directly. [1]: https://github.com/thblt/dotfiles/blob/master/.local/bin/git-fix-remotes11:49
florekm__ joined11:49
sweatsuit_ joined11:49
linuxguru joined11:49
sweatsuit left11:51
sweatsuit_sweatsuit11:51
florekm left11:52
hololeap joined11:55
florekm joined11:55
hololeap_ joined11:58
osse thblt: take a look at url.<base>.insteadOf and url.<base>.pushInsteadOf man git-config11:58
gitinfo thblt: the git-config manpage is available at https://gitirc.eu/git-config.html11:58
florekm__ left11:58
osse not sure if it'll work for all your cases though11:58
hololeap left11:59
crose joined12:01
ikwyl6 left12:02
florekm__ joined12:03
Amol__ joined12:03
richbridger joined12:03
kini left12:04
kini joined12:05
florekm left12:06
john_johnk2 left12:06
CIAZ left12:06
ikwyl6 joined12:06
thblt osse: thanks, reading that!12:06
fission6 joined12:09
dimi1947 joined12:09
Rh0ndaRhonda12:09
tiin57 left12:10
andreas303 left12:13
Rh0nda joined12:13
ph0b0s_ joined12:13
andreas303 joined12:13
tiin57 joined12:13
Heisenberg joined12:14
thblt I think [url "ssh://git@github.com/"]\n pushInsteadOf = "https://github.com/" should work, just need to actually get it to work :)12:15
Rhonda left12:16
osse shouldn't ssh and https be the other way around ?12:16
Amol__ left12:16
ph0b0s left12:16
dimi1947 left12:17
Amol__ joined12:18
thblt osse: no. It's a bit weird, but if you read the doc, url.<base>.pushInsteadOf=<prefix> means push to <prefix> insteadOf <base>.12:18
osse yes, and you said "for which I fetch over HTTPS but push over SSH." so you want to push over SSH, meaning that the prefix thing should be ssh12:19
Heisenberg left12:19
thblt No. It's very unnatural, but it means that when creating a push url, git will enumerate all <prefix> and if one matches, replace it by <base>. That's what I want: when pushing, use SSH.12:21
lbracher left12:21
thblt Let me doublecheck12:22
ws2k3 i have a question. i have a file in my repo but i wish to ignore local changes so i added it to the .gitignore but git is not ignoring my file. is there anything i can do? or do i misunderstand how the .gitignore is supposed to work?12:22
thblt osse: it works like this.12:23
osse ahh12:23
Habbie ws2k3, .gitignore does not apply to files git is already tracking12:23
ws2k3 Habbie: so. i cannot have a local file ignored And have the same file already in git?12:24
Habbie ws2k3, correct12:24
thblt ws2k3: a common approach is to either not track such files, or track them with a different name (eg localconfig.template instead of localconfig)12:24
Habbie ^ that12:24
ws2k3 Habbie: that makes sense thanks and then another question. can i just delete the file from the repo. commit push. add it to .gitignore? and then it Should be ignored?12:26
Muimi_ joined12:27
Muimi_ left12:27
thblt Yes.12:27
Amol__ left12:27
blahdodo joined12:27
Heisenberg joined12:27
thblt out of my head, git tracks paths that are in the checked out revision + staged paths + not-ignored paths12:28
osse thblt: btw, why do you want two different URLs in the first place?12:28
kiweun joined12:29
Muimi left12:30
thblt osse: because I can authenticate on SSH using a hardware token, so I don't need to save/access my github credentials. But I don't want to have to plug said token just to fetch.12:30
(Especially since it's on my keyring with my house keys and I keep forgetting where I left it)12:31
osse oh cool12:31
florekm joined12:32
kiweun left12:34
cd joined12:34
thblt (A Yubikey through gnupg working as ssh-agent)12:35
dslegends left12:35
dslegends joined12:35
florekm__ left12:35
CodeSlingerPaul joined12:35
lbracher joined12:38
thblt Is it "polite" to rename master to main on existing repos? People tracking `master` will have to update manually to the new name, right?12:39
Habbie thblt, where is the repo hosted?12:39
osse Second question: Yes. First question: ehhh...12:39
florekm__ joined12:40
tiin57 left12:40
thblt Habbie: depends, but most are on github12:41
sebito91 left12:41
Habbie thblt, i believe github has some special handling - but you should check the docs12:41
skered joined12:41
thblt Habbie: ha, thank you.12:41
klonn joined12:42
osse i would be very surprised if github could do something serverside that would automatically update the tracking info in a local repo12:42
sebito91 joined12:42
Habbie https://github.com/github/renaming12:42
apparently it provides a helpful message on 'git push'12:42
but yes, that's all it can do for actual git clients12:42
florekm left12:43
sinhue joined12:43
dslegends left12:43
accesspoint joined12:44
jimklimov1 joined12:44
tiin57 joined12:44
dslegends joined12:45
florekm__ left12:45
jimklimov left12:47
linuxguru left12:47
juhwad__ joined12:48
AL13N_lappy so, git tag -l shows the tags; but i'm interesting in sorting this on the order they appear in the current branch12:48
is there a way to get the tags of the history of the current branch in order?12:48
SerialSmile joined12:48
jaziz1 left12:51
krumelmonster joined12:51
thblt AL13N_lappy: ugly but works: git log --format="%d" | grep -v "^$" :)12:52
also tag objects have a date12:52
osse --merged HEAD combined with --sort creatordate12:53
thblt Don't listen to me listen to osse :)12:55
florekm joined12:55
stats4647 left12:57
juhwad__ left12:58
sinhue left12:58
AL13N_lappy yeah, i was reading that, but i'm not certain we could guarantee creatordate to be in the correct order? what about cherrypicked branches?13:00
florekm__ joined13:00
osse what order do you want?13:01
florekm left13:03
osse if you cherry-pick commits tags won't follow13:03
lbracher left13:04
ikwyl6 left13:05
AL13N_lappy right, and then you fix tags , and thus creatordate is moved with it13:05
so, it should still match13:06
what if you add a tag later?13:06
hmm13:06
so, i need to pay attention and fix tags chronologically in a branch and then it still works13:07
justanotheruser left13:07
osse so you want the tags in the commit order?13:07
AL13N_lappy i donno, i would've thought there was a special sort key that would be there only if you use things like merged so it would get the merged order, i guess?13:08
osse: yeah13:08
osse then perhaps git log is best after all13:09
thblt This is probably better than the firs version git log --format="%D" | grep "^tag:"13:09
john_johnk2 joined13:09
AL13N_lappy but, internally in git, how does it do the sorting like in the logging? i figured there would be an internal sort key that matches that, but maybe it's handled differently13:10
osse git log just follows the chain of commits backwards13:10
each commit points to its previous commit(s)13:10
tiin57 left13:10
AL13N_lappy right13:10
osse git tag starts off with the list of all tags that exist13:10
thblt AL13N_lappy: Tags don't necessary point to commits, I think, so you can't treat them as such.13:11
osse that too13:11
accesspoint left13:11
AL13N_lappy i understand, i was just hoping that internally, the way to follow the chain would be a pseudo sort function internally, and then if you have git tag --merged, it could use that as --sort13:11
because, if you have --merged, then those tags point to commits, right?13:12
osse I assume so, yes13:12
thblt But it's way more efficient to start with the commit history and find tags from there.13:13
AL13N_lappy so, in the man page, i was looking for "merged" or "merged:commit-chain" or something, but no dice13:13
yeah, thanks thblt13:13
osse what would that mean?13:13
fahadash joined13:13
deltab left13:14
AL13N_lappy osse: it would be something only available on --merged, so then the --merged would be getting tags like that, by following the commit chain on the --merged=thing13:14
florekm joined13:14
AL13N_lappy anyway13:14
tiin57 joined13:14
AL13N_lappy i guess this is kinda of a niche-case13:15
osse --merged already implies that13:15
if a tag is merged into a prior commit then that counts as being merged into the current13:15
AL13N_lappy myeah13:15
osse what is the actual use case?13:16
sinhue joined13:16
deltab joined13:16
krumelmonster left13:16
AL13N_lappy i'm using it for per branch having an ordered list of tags, which i use in deployment for building specific tarballs, i which differences in feature- tags are created into feature-tarballs13:17
anyway13:18
florekm__ left13:18
ikwyl6 joined13:18
florekm left13:18
rapiz left13:21
krumelmonster joined13:23
krumelmonster left13:23
xgfvc joined13:29
Mat001 joined13:30
mat001_ joined13:30
thebope joined13:32
blyat-73 joined13:33
canadev left13:33
Mattiaslndstrm left13:35
dino82 left13:36
antoine joined13:36
hussam joined13:36
Rh0ndaRhonda13:38
xlei left13:38
tiin57 left13:40
LionsMane joined13:42
Amol__ joined13:42
PJBoy left13:42
SirD_P left13:43
Heisenberg left13:43
kini left13:43
tiin57 joined13:44
kini joined13:45
xlei joined13:45
PJBoy joined13:46
SirD_P joined13:51
ikwyl6 left13:53
lbracher joined13:53
calcul0n_ joined13:55
florekm joined13:55
rigid left13:56
Ragnor left13:56
drbean_ left13:56
rapiz joined13:57
nuala left13:57
calcul0n left13:57
sinhue left13:59
thiago joined14:00
ghoti left14:00
rawtaz left14:00
rigid joined14:01
klonn left14:02
ghoti joined14:02
rapiz left14:03
TomyWork joined14:04
Ragnor joined14:05
howdoi joined14:06
vit100 joined14:09
ikwyl6 joined14:09
tiin57 left14:10
nuala joined14:11
cdown joined14:11
otisolsen70 joined14:12
CrtxReavr Why does git need to "resolve deltas" as part of a fresh repo clone?14:13
john_johnk2 left14:13
ronny i would guess to get the blobs of the last commit which may be packed in the pack as delta to other blobs14:14
tiin57 joined14:14
jesseTree joined14:14
madewokherd joined14:15
CrtxReavr https://bpa.st/6XFA14:15
jupart_ joined14:16
Mattiaslndstrm joined14:20
arcatech joined14:21
winny I'd like to find all merge commits that had manually resolved conflicts for a specific file, I know how to get all merge commits with: git rev-list --min-parents=2 --all . Is there a way to filter down to just commits that have a manual resolution for a specific file?14:21
florekm__ joined14:22
modlin joined14:23
justanotheruser joined14:24
Nodn[m] joined14:25
florekm left14:25
krumelmonster joined14:26
rawtaz joined14:27
gast0n joined14:27
jas4711 joined14:27
rawtaz left14:27
rawtaz joined14:27
thblt winny: I'd guess you'd need to replay all the merges and see if the default algorithm fails on that file, and when it succeds if the result is the same.14:28
tsdh joined14:29
tsdh left14:30
cody left14:31
tsdh joined14:32
amerigo joined14:33
henk in which manpage are things like @ and HEAD and HEAD^ and such explained?14:35
osse henk: man gitrevisions14:35
gitinfo henk: the gitrevisions manpage is available at https://gitirc.eu/gitrevisions.html14:35
henk argh, I was only looking at tab completion for 'man git-' m(14:36
thanks osse14:36
osse the gitfoo manpages (as opposed to git-foo) are much overlooked14:36
or maybe they aren't and I just think they are14:36
who knows14:36
florekm joined14:37
sudoforge joined14:37
ikwyl6 left14:37
osse henk: git help -g lists all the "non-dash" guides, btw.14:40
tsdh osse: Probably, I just wanted to answer the question and looked through the "man git-<TAB>" listing. :-)14:40
tiin57 left14:40
florekm__ left14:40
henk hm, I have push.default=upstream in one repository and need to repeatedly push the current branch (with name someprefix-ab123) to different remotes and want to set up tracking. I tried 'git push --set-upstream myremote @:ab123' and 'git push --set-upstream myremote @:refs/heads/ab123'. The latter works but doesn’t set up tracking. Am I doing anything wrong or are my expectations wrong?14:42
cody joined14:43
ghoti left14:43
henk osse: oh, good to know, thanks14:43
tuskkk____ joined14:43
SerialSmile left14:43
osse henk: does it work if you use the branch name instead of @ ?14:43
_noblegas left14:43
osse also, does it work if you remove refs/heads where it occurs?14:43
ram19890 joined14:43
ghoti joined14:43
stats4647 joined14:44
henk osse: yes, it does, but that’s what I want to avoid because the 'someprefix' part changes.14:44
tiin57 joined14:44
osse henk: try with HEAD instead of @14:44
henk ah, but the remote changes too, so I can’t reuse the exact same command anyway …14:45
and now it probably gets too complicated to still be worth trying to optimize it, it’s just a handful anyway14:45
srinidhi joined14:47
nomicon joined14:48
veegee left14:50
clarkk joined14:51
zebrag left14:52
waveclaw left14:52
zebrag joined14:52
klonn joined14:52
grimpeux joined14:52
henk osse: nope, also doesn’t set the upstream14:53
ikwyl6 joined14:53
waveclaw joined14:53
AnAverageHuman joined14:53
clarkk I have folder that I checked out from github and a zip of the same project, but with no git data. The github project is no longer available. My two folders are different. I'm trying to work out which is the most recent version. Can anyone think of how I can do this, please?14:54
vit100 left14:54
florekm__ joined14:55
rawtaz i mean..14:56
if only one part has version control, i guess the best you can do is to either see if you can find instances of the other part somewhere in the history of the first part, to see where in history that other part might be in terms of age14:57
otherwise check the files' modification dates i suppose, but that can hardly be trusted entirely14:57
Wetmelon joined14:57
waveclaw left14:58
florekm left14:58
tsdh clarkk: You could "git checkout HEAD^" and run "diff -r checkout-dir/ tarball-unpacked-dir/" until there are no changes in non-git files listed anymore. Of course, that will only work if the tarball is not more recent than your clone.14:59
KnoP left14:59
waveclaw joined15:00
xrisovalantis left15:00
malmalmal joined15:01
clarkk tsdh, there are lots of commits, so that may not be feasible. Is it possible to find the commits where a specific file existed, even if it doesn't exist in the latest commit?15:01
mitigate joined15:02
john_johnk2 joined15:02
dimi1947 joined15:02
mitigate with my last version of git, i'm not able to commit if there are whitespace errors15:02
ikwyl6 left15:02
mitigate i get a bunch of whitespace errors and git-commit exits with -115:03
i cant figure out how to force it15:03
dimi1947 left15:03
osse --no-verify15:03
mitigate errors like "new blank line at EOF."15:03
thx15:03
but there arent supposed to be any commit msg hooks15:04
ah i see there are. i wonder where they came from15:05
krofe joined15:05
jgoutz21 joined15:07
ikwyl6 joined15:07
malmalmal left15:08
xissburg joined15:08
mitigate i'm still confused. how come this didnt trigger when i did the same thing a few months ago15:09
i cant see anything in relnotes15:10
jgoutz21 left15:10
tiin57 left15:10
mitigate filemode=false interacts with this?15:10
tsdh clarkk: "git log -- path/to/file" will list all commits affecting that file at least...15:12
thomas_25 left15:13
Joel left15:13
arcatech left15:13
thomas_25 joined15:13
tiin57 joined15:13
Joel joined15:14
CryptoClub left15:16
CryptoClub joined15:18
gearnode left15:19
AnAverageHuman left15:20
gearnode joined15:21
lemonade` joined15:21
dhollinger joined15:22
AnAverageHuman joined15:22
thebopeveam15:23
edlou joined15:24
veamthebope15:25
nvmd left15:25
ikwyl6 left15:25
kini left15:26
durham joined15:28
mindCrime joined15:28
kini joined15:28
blue__penquin joined15:29
long4mud left15:29
modlin left15:30
modlin joined15:30
ikwyl6 joined15:32
modlin left15:35
krofe left15:35
modlin joined15:36
arcatech joined15:36
kiweun joined15:36
linuxguru joined15:38
heyitsrama left15:38
heyitsrama joined15:39
blyat-73 left15:39
blyat-73 joined15:39
tiin57 left15:40
kiweun left15:41
led_belly joined15:41
malmalmal joined15:41
tiin57 joined15:43
ikwyl6 left15:44
hololeap_hololeap15:44
shush joined15:47
tang^ joined15:49
hussam left15:49
KeyJoo joined15:50
txtsd left15:51
zebrag left15:52
zebrag joined15:52
davve hi there, i need to do a git bisect, but i dont want all the changes just pertaining to a single file15:52
any ideas?15:52
osse bisect can filter to a file15:53
davve basically the HEAD and checking out a single file to a specific commit15:53
oh15:53
yay15:53
osse scratch that15:53
I misunderstood. it won't do what you want15:53
klonn left15:54
osse but you can do it by hand using git rev-list --bisect good..bad -- file15:54
or use bisect --no-checkout15:54
dviola joined15:55
davve git bisect --no-checkout start15:55
then just checkout the file manually, then git bisect good/bad ?15:55
florekm joined15:56
osse yes, git checkout BISECT_HEAD -- file15:56
Sc0tty- left15:56
shush left15:56
davve thanks, ill give it a try15:57
grimpeux left15:58
chele left15:58
florekm__ left15:59
finn_elija left15:59
j7k6 left15:59
testq7[m] joined16:00
dviola left16:00
dviola joined16:00
deltab left16:01
finn_elija joined16:01
noidea left16:02
blue__penquin_ joined16:02
blue__penquin left16:04
blue__penquin_blue__penquin16:04
john_johnk2 left16:05
txtsd joined16:05
hussam joined16:05
mitigate left16:06
txtsd left16:06
amcsi_ left16:06
j7k6 joined16:06
blue__penquin left16:08
malmalmal left16:08
blue__penquin joined16:09
tiin57 left16:10
txtsd joined16:11
deltab joined16:12
tiin57 joined16:14
bomb-on left16:15
long4mud joined16:16
Benzi-Junior joined16:16
modlin left16:17
causasui joined16:17
accesspoint joined16:19
jottr joined16:20
rond_ joined16:21
ikwyl6 joined16:21
supercoven joined16:24
supercoven left16:24
supercoven joined16:24
Haohmaru left16:25
causasui left16:27
kini left16:28
kini joined16:29
accesspoint left16:31
DevAntoine left16:31
DevAntoine joined16:32
DevAntoine left16:36
tiin57 left16:40
ikwyl6 left16:40
lechner joined16:40
lechner Hi, is there a way to check out the commit from 'git describe' when the hash portion is missing? I have the most recent tag and the offset count (plus, I know the branch).16:42
grimpeux joined16:42
fflam left16:42
shush joined16:43
fflam joined16:44
tiin57 joined16:44
DevAntoine joined16:44
ikwyl6 joined16:44
AckSynAck joined16:45
rustyshackleford joined16:45
grimpeux left16:47
DevAntoine left16:49
zebrag left16:52
zebrag joined16:52
ikwyl6 left16:54
gast0n left16:54
stats4647 left16:56
florekm__ joined16:56
DevAntoine joined16:56
stats4647 joined16:56
bket left16:58
ikwyl6 joined16:59
florekm left16:59
DevAntoine left17:01
stats4647 left17:04
stats4647 joined17:05
Betal joined17:05
durham left17:06
rond_ left17:07
rafasc joined17:07
ikwyl6 left17:09
tiin57 left17:10
tuskkk____ left17:12
tiin57 joined17:14
rsx left17:15
Jck_true left17:16
klonn joined17:16
Jck_true joined17:16
durham joined17:18
ikwyl6 joined17:20
DevAntoine joined17:21
justmondris joined17:22
kristijonas_ joined17:24
kristijonas left17:26
DevAntoine left17:26
blue__penquin left17:26
stats4647 left17:28
hussam left17:29
LetoThe2nd left17:29
hussam joined17:29
stats4647 joined17:29
AckSynAck left17:29
kini left17:29
ikwyl6 left17:30
kini joined17:31
mowcat joined17:32
xgfvc left17:33
DevAntoine joined17:33
gigasu_shida joined17:36
thblt lechner: you want the Nth commit after a given commit in a given branch?17:36
lechner thblt: yes, please!17:36
ram19890 left17:37
thblt lechner: is this a one-time thing or is this something you need to automate? I mean, if the latter, I'd use git log.17:37
lechner automated17:38
DevAntoine left17:38
justan0theruser joined17:38
justanotheruser left17:38
ikwyl6 joined17:38
grimpeux joined17:38
john_johnk2 joined17:39
thblt So IIUC you'll have a *partial* git describe output?17:39
hnOsmium0001 joined17:40
tiin57 left17:40
lechner i do https://salsa.debian.org/lintian/lintian/-/commit/bbfa926cb78fa87c55f43493a86c6f38a15bbcaa17:41
have the last tag and the count17:41
osse w17:41
I wonder how that simplifies anything17:41
thblt lechner: `git log --reverse` will help, but I'm not sure the output is unambiguous without the hash.17:42
justmondris left17:42
veegee joined17:43
dimi1947 joined17:43
osse I think I'd use bisect17:43
lechner osse: I have to keep track of two versions later https://salsa.debian.org/lintian/detagtive/-/commit/03254e769d5629b7ce81e8a055b6f85e875369f917:43
tiin57 joined17:44
osse you know the part before the count is older, and you know the current commit is never. do git rev-list --bisect this..that and try to git describe that. pick one sine and retry17:44
*side17:44
grimpeux left17:45
lechner thblt: i read that everywhere online, but i have no issue doing it by scrolling the outgut of git log17:45
modlin joined17:45
thblt lechner: I don't understand. You said you wanted to automate it.17:45
osse also git bisect --no-checkout with a script can automate this. I learned about --no-checkout today and has already recommended it twice. Nice.17:45
stats4647 left17:46
DevAntoine joined17:46
stats4647 joined17:46
lechner thblt: yeah, i need it here: https://salsa.debian.org/lintian/taxiv/-/blob/master/add-lintian-tags#L8717:46
thblt ha, bisect is a good idea. But again, I'm really not sure that the output of describe without the hash is unambiguous.17:47
lechner our gitlab cannot do shallow clones there17:47
what if all our merges are fast-forward17:48
FH_thecat joined17:48
vorona joined17:48
osse thblt: it won't be unless you can guarantee a linear history17:48
bisect is the best I can think of17:49
ikwyl6 left17:49
dimi1947 left17:49
lechner we have a liner history, i think17:49
thblt lechner: not even merge commits?17:49
grimpeux joined17:49
thblt lechner: this is the issue you may hit https://paste.thb.lt/1618336170.html (most recent is down)17:50
DevAntoine left17:50
lechner i have never understood merge commits, but would like to learn17:50
thblt merge commits have two parents.17:51
now you understand them :)17:51
two or more17:51
zebrag left17:52
Dotz0cat_ left17:52
zebrag joined17:52
Amol__ left17:52
lechner i don't think so. my runners always pull HEAD when running Lintian17:52
amerigo left17:52
sozuba joined17:53
vorona left17:53
ikwyl6 joined17:53
lechner in SQL terms, I would be happy with LIMIT 117:53
osse easy enough to check: git rev-list --min-parents=2 range-here17:54
if you're happy with that then do the bisect thing17:54
do it by hand, and if it makes sense then script ti17:55
florekm joined17:56
vicfred joined17:58
DevAntoine joined17:58
Guest20 joined17:59
florekm__ left17:59
DevAntoine left18:03
ikwyl6 left18:04
Chex joined18:07
ram19890 joined18:08
juvenal left18:09
TomyLobo joined18:10
tiin57 left18:10
TomyWork left18:10
DevAntoine joined18:11
arcatech left18:11
tiin57 joined18:14
ikwyl6 joined18:15
DevAntoine left18:15
juvenal joined18:15
finalbeta left18:16
sozuba left18:17
Gustavo6046 left18:18
crose left18:21
Tobbi_ left18:22
linuxguru left18:23
ikwyl6 left18:23
DevAntoine joined18:23
dpflick joined18:27
DevAntoine left18:28
accesspoint joined18:30
xissburg left18:31
ikwyl6 joined18:34
DevAntoine joined18:35
hussam left18:35
toolbox left18:36
jas4711 left18:39
grimpeux left18:40
tiin57 left18:40
DevAntoine left18:40
ikwyl6 left18:41
ecool joined18:44
tiin57 joined18:44
iffraff left18:45
arcatech joined18:45
ikwyl6 joined18:46
jas4711 joined18:47
bket joined18:49
zebrag left18:52
zebrag joined18:52
ecool left18:53
juvenal left18:53
ikwyl6 left18:56
florekm__ joined18:56
kini left18:58
florekm left18:59
kini joined19:00
DevAntoine joined19:00
gast0n joined19:01
Hello71 left19:02
Hello71 joined19:03
ikwyl6 joined19:04
DevAntoine left19:04
tiin57 left19:10
Guest20 left19:11
DevAntoine joined19:13
tiin57 joined19:14
p0a joined19:14
ikwyl6 left19:14
p0a Hello, I have a project with many subprojects (say, libraries) that I am keeping track of. Is there a proper way of having individual 'versions' for these projects? branches for everything?19:15
Noisytoot p0a, you can have separate repositories and use git submodules19:15
p0a interesting, thank you19:16
DevAntoine left19:17
lbracher left19:19
hussam joined19:19
cyrus_mc_ joined19:20
splud left19:25
ikwyl6 joined19:25
splud joined19:25
CryptoClub left19:28
splud left19:28
splud joined19:29
juvenal joined19:29
krofe joined19:30
Gustavo6046 joined19:30
shush left19:30
CryptoClub joined19:31
shush joined19:31
ikwyl6 left19:32
dviola left19:33
dviola joined19:35
ikwyl6 joined19:36
kiweun joined19:37
DevAntoine joined19:37
tiin57 left19:40
kiweun left19:41
DevAntoine left19:42
cdown_ joined19:42
Iarfen joined19:43
tiin57 joined19:44
grimpeux joined19:45
cdown left19:45
cdown_cdown19:45
DevAntoine joined19:50
Lord_of_Life_ joined19:51
Reiko2 joined19:51
grimpeux left19:52
zebrag left19:52
zebrag joined19:52
Lord_of_Life left19:54
DevAntoine left19:54
Lord_of_Life_Lord_of_Life19:54
mellernoia joined19:54
ikwyl6 left19:56
florekm joined19:57
Gustavo6046 left19:57
grimpeux joined19:59
Gustavo6046 joined19:59
laj__ left20:00
florekm__ left20:00
klonn left20:02
DevAntoine joined20:02
txtsd left20:03
shailangsa left20:03
dsjdk joined20:04
ikwyl6 joined20:04
Reiko2 left20:05
DevAntoine left20:07
KeyJoo left20:07
hussam left20:09
tiin57 left20:10
rcoote left20:10
hussam joined20:11
tiin57 joined20:13
NightStrike joined20:14
DevAntoine joined20:14
DevAntoine left20:19
ikwyl6 left20:22
thiago left20:24
grimpeux left20:24
thiago joined20:26
DevAntoine joined20:27
krumelmonster left20:30
ikwyl6 joined20:30
Hello71 !subproject20:31
gitinfo [!subprojects] So, you want to add git repositories inside of other git repositories? Well, you have four main options. First is to just do it, add the repo to the outer project's .gitignore, and treat them entirely separately. Best if they are entirely separate. Otherwise your best options are "!submodule", "!gitslave", and "!subtree". Try those commands in this channel, or in a PM to avoid flooding.20:31
Hello71 p0a: ^20:31
DevAntoine left20:31
grimpeux joined20:31
grimpeux left20:34
p0a thank you20:37
PJBoy left20:38
DevAntoine joined20:39
hnOsmium0001 left20:39
NeilG joined20:39
NeilG can I make a branch that doesn't branch off master?20:40
tiin57 left20:40
bremner git switch -c new-branch thing-not-maaster20:40
PJBoy joined20:43
DevAntoine left20:43
ikwyl6 left20:44
tiin57 joined20:44
clarkk left20:45
imMute NeilG: by default it'll branch off whatever commit you're on at the moment.20:45
NeilG imMute, so I can git checkout in the past, then git switch -c "some_branch", and I'll be good from there?20:46
can I also go into the future? git checkout upstream/master, then switch?20:46
bremner, oh, just syour comment, okay, so the second parameter can be upstream/master?20:47
imMute git checkout -b new_branch really_old_commit_or_branch (will create and switch to new_branch)20:47
no, you cannot branch from future commits. that's impossible.20:47
NeilG imMute, okay, that's slightly annoying beacuse I made the mistake of using master for my pull request, and I want to make another one20:47
imMute yes, the 2nd argument in bremner's command, the place to branch from, can be any commit sha or reference20:47
grimpeux joined20:48
ikwyl6 joined20:48
NeilG imMute, okay, so I guess I should rebase my existing pull request to upstream/master, then branch off upstream/master for my second pull request?20:48
imMute I dunno what you did already. it sounds like you used your master branch to do work that should have been on a feature branch?20:49
grimpeux left20:49
otisolsen70 left20:51
m0viefreak left20:51
DevAntoine joined20:52
zebrag left20:52
zebrag joined20:52
amosbird left20:52
amosbird joined20:53
DevAntoine left20:56
ikwyl6 left20:56
mellernoia left20:56
florekm__ joined20:57
Hello71 what do you mean "future"21:00
master is not special21:00
florekm left21:00
jas4711 left21:01
ikwyl6 joined21:01
NeilG Hello71, I just meant upstream/master was ahead of my master, so it's "in the future"21:03
Hello71 git doesn't care about any of that21:03
NeilG Hello71, I wasn't sure if I could branch off it, but I guess that doesn't make sense21:03
foul_owl left21:03
Hello71 you can forgo branches and use entirely commit hashes for everything21:03
accesspoint left21:03
NeilG imMute, exactly, I used my master branch21:03
Hello71, that's fine, but I have no idea how to make Github pull requests using a commit hash instead of a branch21:04
Hello71 git checkout -b newbranch otherbranch is equivalent to git checkout -b newbranch $(git rev-parse otherbranch)21:04
i mean you shouldn't21:04
NeilG okay then I won't :)21:04
Hello71 my point is that branches are just aliases for commit hashes21:04
there's nothing special about the "master" name21:04
calcul0n_ left21:06
NeilG Hello71, sure, but I wasn't saying that there was. I was just wondering whether I could make a branch that splits off from something I haven't pulled yet21:07
Hello71 !pull21:07
gitinfo pull=fetch+merge (or with flags/config also fetch+rebase). It is thus *not* the opposite of push in any sense. A good article that explains the difference between fetch and pull: http://longair.net/blog/2009/04/16/git-fetch-and-merge/21:07
NeilG which now that I think about it doesn't make sense I guess21:07
Hello71 you can delete your local master if you want and never use pull21:07
run git merge origin/master manually21:07
NeilG Hello71, okay, I don't think you've spent the time understanding what I've written, friend ;)21:07
Hello71 ok21:08
calcul0n joined21:08
duderonomy left21:08
dsjdk what commands should I use to sync my repository with remote storages?21:10
tiin57 left21:10
dsjdk also, if I fucked my branch up, is it possible to store my commits somewhere and start again?21:12
duderonomy joined21:12
tiin57 joined21:14
foul_owl joined21:16
DevAntoine joined21:17
rawtaz you always have `git reflog` to dig into to find oyur commits as long as they havent been GCd21:18
duderonomy left21:18
ikwyl6 left21:19
osse dsjdk: the only commands you'll use daily to sync is fetch for downloading (pull does fetch under the hood), and push.21:19
duderonomy joined21:19
krofe left21:20
DevAntoine left21:21
ikwyl6 joined21:23
dsjdk do I need each branch separately if they are from the same repository?21:24
*to pull21:24
specing joined21:25
krofe joined21:25
modlin_ joined21:25
specing Hello. Is there a way to do a checkout with rebase? I want to move forward in history, but keep my local commits21:27
modlin_ left21:28
modlin left21:28
jstein joined21:28
imMute dsjdk: "what commands should I use to sync my repository with remote storages" -> git fetch21:28
dsjdk: a fetch will pull all the state from the remote that you don't already have (any commits or branches. tags are separate though)21:30
specing: that doesn't really make sense. how is it different from a regular rebase?21:30
shailangsa joined21:31
ikwyl6 left21:32
specing imMute: oh, Im dumb21:33
I've always been doing a git pull --rebase, but this time Im moving back and forth in history due to a problem, so it's not "pulling", and it didn't click that pull was just a shorthand for fetch&rebase21:34
ikwyl6 joined21:36
kjartan joined21:37
kini left21:38
kini joined21:39
tiin57 left21:40
DevAntoine joined21:41
fission6 left21:42
tiin57 joined21:44
DevAntoine left21:46
cyrus_mc_ left21:46
ram19890 left21:47
calcul0n left21:48
zebrag left21:52
zebrag joined21:52
calcul0n joined21:52
dsjdk left21:53
DevAntoine joined21:54
p4trix left21:55
florekm joined21:57
mindCrime left21:57
DevAntoine left21:58
newton joined22:00
florekm__ left22:00
arcatech left22:01
newton is there a quick way to stage a change and amend it into a commit before the last commit? or just the rebase route22:01
dermoth_dermoth22:01
thblt newton: I know of nothing faster than !fixup then autosquash.22:01
gitinfo newton: So you lost or broke something or need to otherwise find, fix, or delete commits? Look at https://sukima.github.io/GitFixUm/ for full instructions, or !fixup_hints for the tl;dr. Warning: changing old commits will require you to !rewrite published history!22:01
thblt fixup! sorry22:02
newton oooh, thank you :)22:03
DevAntoine joined22:06
irrgit left22:06
john_johnk3 joined22:07
lbracher joined22:08
newton yeah that's a huge improvement on what I've been doing22:08
john_johnk2 left22:10
tiin57 left22:10
DevAntoine left22:10
tiin57 joined22:14
john_johnk3 left22:15
gschanuel left22:15
gschanuel joined22:16
ikwyl6 left22:17
Dotz0cat joined22:18
DevAntoine joined22:18
minsec left22:20
minsec joined22:20
CodeSlingerPaul left22:22
DevAntoine left22:22
imMute left22:24
imMute joined22:25
thansen left22:26
thansen joined22:27
dpl joined22:29
minsec left22:30
minsec joined22:30
DevAntoine joined22:31
crose joined22:31
ikwyl6 joined22:31
tang^ left22:33
gschanuel left22:33
gschanuel joined22:34
DevAntoine left22:35
lbracher left22:36
gast0n left22:38
jimmiehansson left22:39
tiin57 left22:40
grimpeux joined22:42
DevAntoine joined22:43
tiin57 joined22:44
gast0n joined22:45
Xiti left22:46
hololeap_ joined22:46
DevAntoine left22:48
hololeap left22:50
ikwyl6 left22:51
zebrag left22:53
viko left22:53
lbracher joined22:54
impermanence joined22:55
jetchisel left22:56
impermanence my feature branch is 1 commit ahead, 1 commit behind of master; my teammate's branch is 38 commits ahead of master; I need to get both these branches back to master sanely. What is the best approach for doing so?22:56
ferdna joined22:57
florekm__ joined22:57
ikwyl6 joined22:58
florekm left23:00
arcatech joined23:04
Xiti joined23:05
grimpeux left23:06
gschanuel left23:06
grimpeux joined23:07
gschanuel joined23:07
tiin57 left23:10
impermanence left23:10
arcatech left23:10
gschanuel left23:11
tiin57 joined23:14
gschanuel joined23:17
grimpeux left23:19
lbracher left23:20
LordRyanDaddy23:20
ikwyl6 left23:20
jetchisel joined23:21
dpl_ joined23:21
Cerise left23:22
ghoti left23:23
Cerise joined23:23
Cerise left23:23
Cerise joined23:23
Gustavo6046 left23:24
gschanuel left23:24
dpl left23:25
gschanuel joined23:26
grimpeux joined23:27
grimpeux left23:27
shailangsa left23:27
amahl left23:28
kini left23:29
ikwyl6 joined23:30
kini joined23:31
AngryOwl4 joined23:32
LionsMane left23:32
AngryOwl left23:34
AngryOwl4AngryOwl23:34
vdamewood joined23:34
ikwyl6 left23:37
kiweun joined23:38
Gustavo6046 joined23:38
shailangsa joined23:39
tiin57 left23:40
kiweun left23:42
tiin57 joined23:43
ikwyl6 joined23:44
DaddyLordRyan23:46
mindCrime joined23:57
florekm joined23:57
calcul0n left23:58

Logs Search ←Prev date Next date→ Channels Documentation