IRCloggy #git 2019-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.

2019-12-17

thiago left00:03
Moongoodgirl NeuroWinter: I would be averse to doing that. It sounds like it loses information about where the changes come from.00:04
I would prefer just using an interactive rebase to retcon out the commit, if it was never pushed; or else `git revert` if it was00:05
omnireq left00:05
khisanth_ joined00:07
thiago joined00:07
g4570n joined00:15
greatgatsby joined00:16
sidetrack joined00:19
xcm left00:21
xcm joined00:21
Aelius left00:26
mokha left00:34
fahadash left00:36
royal_screwup21 joined00:36
oatmealraisin joined00:42
fission6 joined00:46
greggerz left00:50
omnireq joined00:52
alesan left00:52
mat001_ left00:52
beastDiv_ joined00:53
thiago left00:57
Sasazuka left01:00
libertyprime joined01:01
Sasazuka joined01:01
parallel21 joined01:03
fission6 left01:08
prepend joined01:10
n3wborn left01:14
beastDiv_ left01:14
ixian8 left01:16
registerihateto left01:20
LearnAllTheTime left01:22
durham left01:23
Enphuego left01:27
davispuh left01:31
Sonicbit left01:31
lucasb left01:32
Helenah left01:32
dartmouthed left01:33
Helenah joined01:33
g4570n left01:34
im0nde joined01:35
im0nde_ left01:37
themayor left01:39
Sasazuka left01:52
bambanx joined01:53
sidetrack left01:56
qpdbGuest207701:59
Guest2077 left01:59
qpdb joined01:59
xcm left01:59
Lucas_Gray joined02:01
zulutango left02:02
thiago joined02:03
LearnAllTheTime joined02:03
mowcat left02:03
fphilipe_ joined02:05
zulutango joined02:05
yawkat left02:06
jimender2 joined02:09
fphilipe_ left02:09
fission6 joined02:15
libertyprime left02:18
libertyprime joined02:20
durham joined02:22
yawkat joined02:23
wodim left02:24
Love4Boobies joined02:24
wodim joined02:24
Arcaelyx left02:25
libertyprime left02:25
JanC left02:25
yonder joined02:26
JanC joined02:26
libertyprime joined02:26
durham left02:27
rardiol left02:34
F0rTex left02:34
orbyt_ joined02:35
F0rTex joined02:36
sidetrack joined02:38
finalbeta1 left02:38
daurnimator left02:40
zulutango left02:45
Ranhir joined02:47
finalbeta joined02:48
daurnimator joined02:49
robertparkerx left03:01
robertparkerx joined03:01
kreyren left03:05
royal_screwup21 left03:10
Newami joined03:17
zulutango joined03:21
Cabanossi left03:23
Sonicbit joined03:28
Cabanossi joined03:33
duderonomy joined03:45
libertyprime left03:47
prepend left03:48
monr0e left03:50
oatmealraisin left03:50
Garen joined03:52
lagothrix left03:55
lagothrix joined03:55
Newami left03:55
Eugene fury - tbh, just make your new projects history going forward. Include a reference to the Monolith' URL in the first commit; if anybody cares about the archaeology they can go look it up, but I bet you they won't04:00
Sleepy63 left04:01
kiki_lamb joined04:02
sidetrack left04:02
kiki_lamb Is there a way to exhaustively string search the entire history of a repo? Like, not just current heads and not just one branch - I want to know if a particular string has ever occured in any commit in my repo.04:03
sidetrack joined04:03
sporeball joined04:05
fission6 left04:05
sidetrack left04:08
sidetrack joined04:08
sporeball left04:11
khisanth_ left04:15
Lucas_Gray left04:17
bjpenn joined04:32
bjpenn if i created a "branch-of-branch" off "branch", which is based off master04:33
how do i eventually merge my "branch-of-branch" to master?04:33
LearnAllTheTime left04:39
ferdna left04:39
ahmedhany joined04:39
khisanth_ joined04:39
ahmedhany hi there everyone I have a technical question hope someone could help me04:40
I want to know which specific "executable" within git is responsible for pushing (i.e. uploading) staged files to the remote repository. As a security team we need this piece of info to be able to implement DLP policy within our premises to prevent the leakage of proprietary source code.04:40
ferdna joined04:41
ahmedhany to be more specific.. when I issue this command: "git push" which process (i.e. executable) is responsible for uploading the files or modifications to the remote repo04:42
ferdna left04:44
ferdna joined04:45
R2robot can't you use a trace on it to see what is being called?04:45
bjpenn left04:46
omnireq_ joined04:47
ahmedhany I did with "process monitor" and I found "git-credential-manager.exe" but it didn't work I guess04:47
I already hooked these executables with our dll but no result (the executables: "git-bash" "wish" "git-credential-manager" and I think something called mintty.exe)04:48
sidetrack left04:49
omnireq left04:50
sidetrack joined04:52
libertyprime joined04:53
Shentino left04:56
libertyprime left04:57
Shentino joined04:59
Shentino left05:00
Shentino joined05:01
pks_ joined05:01
pks left05:04
pks_pks05:04
Sleepy63 joined05:06
fstd_ joined05:07
ricks_ joined05:10
beastDiv_ joined05:10
fstd left05:11
fstd_fstd05:11
orbyt_ left05:11
ricks_ left05:11
ricks_ joined05:12
beastDi__ joined05:16
beastDiv_ left05:17
bvdw left05:18
bvdw joined05:19
beastDi__ left05:20
beastDiv_ joined05:21
iam730 left05:24
dtux joined05:25
Eugene kiki_lamb - `git rev-list --all | xargs git grep foobar`05:25
mns_ joined05:25
mns left05:25
Eugene ahmedhany - time to pay an expert to explain the source to you then ;-). git can use custom helpers, but basically git calls out to `ssh` for the heavy lifting05:27
A better answer would be to monitor what processes actually open sockets when you run `git push`. I'm sure strace and lsof will be your friends05:27
YuGiOhJCJ joined05:31
sidetrack left05:31
kjartan joined05:36
kjartan_ left05:38
Goplat joined05:38
Inline left05:39
sidetrack joined05:41
g00s left05:42
sidetrack left05:42
g00s joined05:45
brettgilio left05:46
brettgilio joined05:46
BeerLover joined06:01
fury Eugene: normally I would agree, and that's what I started off with in the first project that split off into its own - first commit message just linked to the last commit from the monorepo. however, knowing how things work where I work, I will be the one being asked to enumerate the differences between version 1.xx and 2.xx and it will probably be easier for me to keep the boss from shitting his pants when I produce this next06:02
release if I can prove the code is "the same" (other than moved around)06:02
howdoi left06:03
Eugene If your boss doesn't trust the release engineer to run `diff` then you have bigger problems IMO06:03
boombatower left06:03
ahmedhany left06:04
fury I agree, my new repo is built in CI for that very reason, to make it easier to "trust but verify"... this is the kind of guy who if the application CRC is different his palms get sweaty, knees weak, arms are heavy, because one time 10 years ago this one thing changed in some stupid old crappy microcontroller compiler and something went wrong that got missed until after it went through production so now every little thing ever06:07
since gets an inordinate amount of scrutiny06:07
ricks__ joined06:08
ricks__ left06:08
ricks_ left06:09
fury At least now I have full control over the software and can remove things like baking the build date into the application, for 100% reproducible builds :D06:10
dtux left06:14
Mattiaslndstrm joined06:14
bambanx left06:15
fury Small company, so, I am the software engineer, release engineer, testing engineer, web monkey, etc. :P I have to write the code, then the code that tests the code, then the code that tests the tester, etc.06:15
Eugene kno dat06:18
mikami joined06:18
kreyren joined06:20
sauvin joined06:22
Sonicbit_ joined06:41
Sonicbit_ left06:41
tabakhase fury yea, dont "manually" anything... the tool to "split out foders" you alread yfound as it seems, from there one would usually "cut" with a trusted tree, keep that as archive and allow anyone who needs later to "pull both, and link them with git-replace" (what makes git-blame and everything work again)06:43
Sonicbit left06:44
tango_ left06:44
Mattiaslndstrm left06:44
tabakhase git commit-tree and some back&forth branching06:45
senaps joined06:48
senaps left06:49
nirmalhk7 joined06:49
senaps joined06:50
nirmalhk7 left06:50
tango_ joined06:51
nirmalhk7 joined06:53
Moongoodgirl left06:54
nirmalhk7 left06:54
xcm joined06:56
kreyren left06:57
dionysus69 joined06:59
kreyren joined06:59
Cabanossi left06:59
kreyren left07:01
dtux joined07:01
nirmalkhedkar joined07:03
thiago left07:03
duderonomy left07:04
nirmalkhedkar left07:04
sQVe joined07:08
Cabanossi joined07:10
cbreak left07:15
senaps left07:15
Moongoodboy joined07:15
cbreak joined07:15
MoongoodboyMoongoodgirl07:17
Noti joined07:17
Goplat left07:19
Assault left07:24
senaps joined07:26
sauvin left07:27
pie_ left07:31
nirmalkhedkar joined07:33
BrainWork joined07:33
nirmalkhedkar left07:33
BrainWork hi. in ancient version control systems like CVS, there was a way to put a tag into your file that would be munged on pre-commit, i think it was $CVS$. is there a way to do something similar with git, and to make it clear i'm after a human readable incrementing version number that isnt and shouldnt be the same as the git commit id.07:34
sauvin joined07:34
BrainWork i want it for a version *number* of a module07:34
and also its fine if its just a single integer number, i'll hard code "1.0." on the start07:35
osse BrainWork: there isn't anything that is a direct replacement07:36
BrainWork i was kind of hoping someone had made a pre-commit hook i could just snaffle07:36
osse you can do it via a pre-commit hook or a clean/smudge filter07:36
n000g left07:37
selckin sounds like a job for the CI/build server07:37
BrainWork yeah, except i dont do 'releases' of this as such07:37
tabakhase there is gitversion - what gives like "actual version +dirty commits" as one useable thing...07:38
BrainWork its a pair of rolling branches, a dev and live branch, that are updated as and when needed without proper releases07:38
n000g joined07:38
osse What do you need the number for? Maybe there's a different way of solving the underlying challenge07:38
beastDiv_ left07:39
BrainWork my program has a core binary that's built by cmake, and a bunch of libraries that are shared objects, also built from the same cmake07:39
tabakhase but git is more as in "someone decides this state is this version" and then tags it, rather than "having it in a file" - and often some shellfu if that needs to be baked in a file to release something07:39
BrainWork its possible that i can be running the core binary and do a cmake to rebuild a module to hotpatch it07:39
within the thing it runs on i can issue a 'modules list' command to show me what is running, theres a 'get version string' command for each module07:39
i could put the first few or last chars of a git commit id in there ofc, but i wanted something more human readable where i can easily compare if the source code is newer or older than whats running atm07:40
osse you can put $Id$ into the file, but Git will use the object sha107:40
BrainWork without having to go into the shell07:40
yeah $Id$ has no concept to me of whats newer or older does it07:40
selckin $date07:40
nirmalkhedkar joined07:41
osse BrainWork: not directly. you would have to look that up07:41
BrainWork hmm, turn the date into a version number?07:41
i suppose i could do that if i turn it into unixtime and divide by 100 or something07:41
selckin well $commitid build on $date from branch v5.x07:41
BrainWork thats a bit long for the field i've got07:42
i have display limitations, i can really only fit "n.n.nnnn" in there07:42
n3wborn joined07:42
BrainWork or maybe 5 digits on the last bit07:42
nirmalkhedkar left07:42
tabakhase if thats a monorepo and the way people hop in gitbranches makes such things a bit troublesome too, so depends on a lot of other things in your workflow...07:42
selckin it'll take some brain work then07:42
nirmalkhedkar joined07:43
BrainWork its made a little easier by the fact the only maintainer is me atm07:43
hmm, perhaps i can make a simple text only db, store it alongside the hook, with the filename and the increment number07:43
nirmalkhedkar left07:44
BrainWork because all these files are under a specific subdirectory07:44
and make a simple perl script or such07:44
tabakhase and if youre talking of "on a users workstation" - youve also got unstaged changes ontop of this.. so lotta info to decode into that07:44
osse I think I would use cmake for this. configure_file(config.h.in) or whatever, and that contains @VERSION@ etce tc07:44
BrainWork nope, the only place this runs is on my dedicated server07:45
its a discord bot07:45
hmm, interesting to use cmake for it07:45
breakingsad joined07:46
BrainWork i dont know that much about cmake and generally muddle my way along, so im going to read up on that, thanks osse :)07:46
tabakhase ive got a case where i build: ref="$(/usr/bin/git rev-parse --short=12 HEAD || date +%s)-dirty$(git status --porcelain | wc -l)/$(date +%s)"07:46
sydbarret joined07:48
chele joined07:48
dartmouthed joined07:49
BrainWork last time i did something like this, i was doing it on release07:50
years before there was stuff like jenkins or circleci i'd made some kind of ghetto CI/release management that would run on crontab looking for tags matching a certain regular expression, and try to clone and build them, if they passed it would tar them up and upload them... back then, to sourceforge.07:51
part of that was building a version.sh from an incrementing id07:52
but that was much easier as i had tags etc to work from07:52
perhaps i need to do something similar here and make sure i tag before i merge it to live07:52
or as part of the process07:52
osse This limit you mention... Is that a hard limit in the binary or a limit in the display?07:52
BrainWork a display limit07:53
due to the client which displays the module list, which i cant control07:53
veegee left07:54
BrainWork i can trim some characters out of another field, but im a bit pressed for space (dont let the right hand edge deceive you, it has to be mobile friendly and any wider makes it wrap on mobile): https://snipboard.io/z4gP8m.jpg07:55
tbh they just need to support tabular content already, instead of making me kludge it via code blocks and diff format07:56
k_sze left07:56
k_sze joined07:57
veegee joined07:57
morfin joined07:57
morfin hello07:57
dtux left07:57
morfin is there a way to wipe out some commits from the middle of history?07:58
_ikke_ morfin: depends07:58
technically possible: yes07:58
feasible: depends07:58
BrainWork sounds dangerous to the commits that come after07:58
SteffanW joined07:58
_ikke_ morfin: an iteractive rebase can do it07:58
Noti left07:58
masuberu joined07:59
morfin well, i want somehow to do that to remove some commits from remote repo(yes i'll have to push -f and screw up remote history)07:59
pie_ joined08:00
masuberu hi, I am a little bit confused with git and I would like to ask what I'm missing... Basically I have 2 branches b1 and b2, I do git merge b2 from b108:00
and then I run git diff b1 b208:00
this shows me changes on both branches08:00
it should only give me changes on one of them right?08:00
_ikke_ masuberu: no, git diff diffs exactly 2 commits, what happend between them does not matter08:01
masuberu: there is git diff b1...b2 (note the three dots) which does what you want08:01
nirmalhk7 joined08:04
nirmalhk7 left08:04
netz_ joined08:05
apoos_maximus joined08:05
netz_ left08:06
netz left08:07
masuberu _ikke_ ok using `...` now does not show any input which is what I expected... but, what is the difference with not using the `...`? you mentioned git diff compares 2 commits but the last commit of one of the branches already have the changes of the other one?08:08
netz joined08:09
osse masuberu: git diff b1...b2 does a diff of their merge-base and b208:09
veegee left08:10
sydbarret left08:15
masuberu osse, so are you saying that git merge and git merge-base are the same?08:15
veegee joined08:16
SerialSmile joined08:16
causasui left08:18
osse that's comments-section-of-political-news-article levels of assumption :O08:18
git merge-base just find the common ancestor of two branches08:18
git diff b1...b2 = git diff $(git merge-base b1 b2) b208:18
masuberu left08:20
osse Oops08:21
I might have gone over the top there08:21
BeerLove_ joined08:21
BeerLover left08:23
gloomy joined08:25
masuberu joined08:26
masuberu osse, sorry, I still don't understand. So lets say I have master and then I create a branch feature1 and I with time feature1 has several commits. Then I make 3 more commits in master and I do git merge master from feature1 branch. From my understanding is that all changes in master are included in feature1. correct?08:29
osse masuberu: correct08:29
_ikke_ but not all changes from feature1 are included in master08:29
masuberu correct08:30
_ikke_ so if you do a git diff, you'll see the changes that are in feature1, but not in master08:30
masuberu but I expect when I do diff master feature1 to show only the codes of line that exists only in feature108:30
_ikke_ Yes, but that's not how git diff works08:31
just plain git diff A B does not care about branche08:31
It just looks at the differences between commit A and commit B08:31
kleisli joined08:32
osse but you should see something close to that, though08:32
_ikke_ right08:33
masuberu what is the definition of a commit? I thought it was like a snapshot of code after being persisted08:34
_ikke_ 9yes08:34
fphilipe_ joined08:35
masuberu left08:36
planetcall|work joined08:37
shady_traveller joined08:38
oxymoron93 joined08:41
senaps left08:42
mobidrop joined08:45
beastDiv_ joined08:46
BeerLove_ left08:51
sidetrack joined08:52
BrainWork hmm08:52
i tried to make a pre-commit hook, but it seems i cant modify a file within the pre-commit hook08:53
as its again considered modified and needs to be git add'ed again08:53
osse u r rong08:53
yes, you have to add it again08:53
BrainWork but that defeats the point08:53
i want to change the actual file in the git commit and have that treated as part of the change08:53
e.g. ive made change A, im adding change B to that change (incrementing a version id) and then want to commit the lot under the "banner" of the commit08:54
osse and that's exactly what you accomplish if you git add in the hook08:54
I mean, you can run git add from within the hook08:54
BrainWork hmm08:55
it doesnt work if i do that08:55
because then once the commit is complete, the files are 'add'ed again08:55
which means i'd need to commit the change08:55
which means it would change the files again08:56
etc etc08:56
basically the change i make becomes part of the /next/ commit08:56
osse I don't really know what to say. From my testing it works08:56
BrainWork https://superuser.com/questions/768826/how-to-commit-files-modified-by-pre-commit-hook-in-git08:57
sidetrack left08:57
BrainWork this is the problem08:57
osse I have a pre-commit that does "echo lol >> file; git add file" and everything I make other changes it's updated and committed08:57
ferdna left08:58
jimender2 left08:59
BrainWork yes but then after the commit, does it show 'file' as modified, and added, in green ready for another commit?08:59
rather than 'repository clean'08:59
osse no, it's clean08:59
BrainWork i basically have to commit twice08:59
this doesnt work if you're also modifying 'file' as part of the workflow09:00
osse and when I do "git show" it'll show the changes the hook made as well09:00
BrainWork because you have a commit for your changes to 'file' and a commit for the pre-commits changes to 'file'09:00
osse what do you mean09:01
stkirk joined09:01
BrainWork https://ideone.com/i0rE9B09:01
this09:01
mobidrop_ joined09:01
BrainWork so i make changes in an editor to the four cpp files and add them, then i commit my changes, like 1 thru 1509:02
i then do git status after git commit and it shows the files i just committed are now modified again, waiting for another commit (line 20) - this is because the pre-commit changed them and "git add"ed them09:02
i commit *a second time* (line 29)09:02
figuinhas joined09:02
BrainWork this then pushes the changes to the repo that git-commit made09:03
s/git-commit/pre-commit09:03
then i do a git status, its clean09:03
i do a git log, and i have two commits09:03
osse what does the pre-commit hook look like?09:03
lmariscal0 joined09:03
|Fitz|9 joined09:03
rfuentess joined09:03
lem-fr5 joined09:03
BtbN_ joined09:03
shored1 joined09:03
Case_Of_ joined09:03
LiENUX joined09:03
Qiz joined09:03
cyberpear_ joined09:03
tcsc_ joined09:03
Milos_ joined09:03
Nizumzen_ joined09:03
rknLA_ joined09:03
cebor_ joined09:03
LasseVK_ joined09:03
jleclanche_ joined09:03
heinrich5991_ joined09:03
lebster_ joined09:03
quesker_ joined09:03
Arguggi_ joined09:03
junderw_ joined09:03
holdsworth_ joined09:03
cluelessperson_ joined09:03
IAmNetx_ joined09:03
BrainWork https://ideone.com/BpmG5Y09:03
afisher_ joined09:03
BrainWork like that osse09:03
fury__ joined09:03
ssd532 joined09:04
yena_ joined09:04
\u joined09:04
ryjen joined09:04
chachasmooth_ joined09:04
prit_ joined09:04
BrainWork yeah its php, i found it quicker to prototype than remembering how perl worked09:04
moviuro_ joined09:04
JackMc_ joined09:04
BrainWork and ugh i hate netsplits09:04
dustinm- joined09:04
__salt joined09:04
osse BrainWork: do you have a shell wrapper around that? because the hook needs to be named "pre-commit" literally09:04
dansan_ joined09:04
BrainWork tbh it looks like im going to have to have a seperate modules/file.cpp.ver.h or such09:04
brethil_ joined09:04
BrainWork yes i do09:04
tjbp_ joined09:05
Decobus_ joined09:05
heftig_ joined09:05
BrainWork https://ideone.com/9pDeMY09:05
sentriz6 joined09:05
devster joined09:05
ztrawhcse joined09:05
PocketKiller joined09:05
sauvin left09:05
bket_ joined09:05
Whiskey left09:06
n3wborn_ joined09:06
BrainWork i based it off the example09:06
Seveas_ joined09:06
jtmusky_ joined09:06
Peng__ joined09:06
sgn_ joined09:06
osse on line 40 you got a clean repo09:06
BrainWork yes but only after two commits09:07
unCork joined09:07
BrainWork i never get a clean repo after just one commit, which is what i really want09:07
apetresc_ joined09:07
arooni_team_b joined09:07
osse shouldn't you *always* get have uncommitted changes if this works like you think?09:07
veegee_ joined09:07
BrainWork basically, the commit i made to change the .cpp files by hand09:07
fructose0 joined09:07
BrainWork no, i want those changes to the file to be transparent09:07
osse Yes I get that09:07
BeerLover joined09:07
osse But if you're right that this doesn't work like it should, why do you get a clean repo after two commits?09:08
Shouldn't you NEVER have a clean repo then?09:08
BrainWork hmm. thats a good question09:08
and i would expect to never have a clean repo09:09
Whiskey joined09:09
BrainWork so why were there two commits?09:09
cyberanger_ joined09:09
segnior_ joined09:09
varesa_ joined09:09
Defcronyke` joined09:09
osse ỳou made two commits :p09:09
markzen_ joined09:09
mu_ joined09:09
crose joined09:09
BrainWork hmm09:10
it seems to work now09:10
osse ok, siomple test, with this hook in place: Make a small change somewhere else. add and commit. run git show09:10
steven- joined09:10
osse yaaay09:10
BrainWork every time i tested it before, there were two commits for every change i made09:10
im at a loss why its suddenly working but lets not poke the bear lol09:10
thanks osse :)09:10
Whiskey left09:10
Kronuz_ joined09:10
polyrob_ joined09:10
osse PROBLEM!!!09:10
c0san0stra_ joined09:10
mobidrop left09:10
veegee left09:10
n3wborn left09:10
daurnimator left09:10
qpdb left09:10
Helenah left09:10
IAmNetx left09:10
Decobus left09:10
roadie left09:10
rfuentess__ left09:10
steven left09:10
grumble left09:10
markzen left09:10
Arguggi left09:10
chachasmooth left09:10
devster31 left09:10
zerogue left09:10
a--m left09:10
CalimeroTeknik left09:10
elibrokeit left09:10
Kaisyu7 left09:10
bremner left09:10
StuartMI left09:10
heftig left09:10
mdk left09:10
doug16k left09:10
heinrich5991 left09:10
BtbN left09:10
shored left09:10
Thorn left09:10
_salt left09:10
eblip left09:10
apetresc left09:10
sgn left09:10
bket left09:10
Milos left09:10
polyrob left09:10
ZachGibbens left09:10
Nizumzen left09:10
kashike left09:10
Mindi left09:10
cluelessperson left09:10
lucasseikioshiro left09:10
swalladge left09:10
jleclanche left09:10
jrun left09:10
SJr left09:10
sparr left09:10
moviuro left09:10
yena left09:10
junderw left09:10
rknLA left09:10
Bilge left09:10
xkr47 left09:10
avu left09:10
arooni left09:10
segnior left09:10
lem-fr left09:10
jelmer left09:10
PacKetSlayer left09:10
de-vri-es left09:10
jtmusky left09:10
inscrutable left09:10
lebster left09:10
Peng left09:10
ssd532_ left09:10
batrick left09:10
cebor left09:10
prit left09:10
fructose left09:10
_flow_ left09:10
sostenuto left09:10
gitinfo left09:10
synx left09:10
rcn left09:10
GGMethos left09:10
raatiniemi left09:10
Cork left09:10
c0san0stra left09:10
goldleader left09:10
quesker left09:10
Case_Of left09:10
no_maam left09:10
Kartagis left09:10
alip left09:10
holdsworth left09:10
meowray left09:10
LiENUS left09:10
sentriz left09:10
|Fitz| left09:10
Seveas left09:10
Qizzy left09:10
dustinm left09:10
Defcronyke left09:10
lmariscal left09:10
level3 left09:10
slax0r left09:10
tjbp left09:10
brethil left09:10
varesa left09:10
dexterfoo left09:10
sjohnson left09:10
robinsmidsrod left09:10
afisher left09:10
DistantStar_ left09:10
bittyx left09:10
SpeakerToMeat left09:10
mu left09:10
andi_ left09:10
eldritch left09:10
Cathy left09:10
DevAntoine left09:10
ZeZu left09:10
jan6 left09:10
ross` left09:10
nemesit|znc left09:10
cjohnson left09:10
cyberpear left09:10
fuchstronaut left09:10
tcsc left09:10
Kobaz left09:10
fury_ left09:10
Kronuz left09:10
sitaram left09:10
JackMc left09:10
LasseVK left09:10
BtbN_BtbN09:10
heinrich5991_heinrich599109:10
|Fitz|9|Fitz|09:10
unCorkCork09:10
osse Do you use git add -p sometimes?09:10
ryjenzerogue09:10
IAmNetx_IAmNetx09:10
apetresc_apetresc09:10
rknLA_rknLA09:10
junderw_junderw09:10
Case_Of_Case_Of09:10
Kronuz_Kronuz09:10
Defcronyke`Defcronyke09:10
yena_yena09:10
prit_prit09:10
cjohnson_ joined09:10
LasseVK_LasseVK09:10
tcsc_tcsc09:10
a--m joined09:11
jleclanche_jleclanche09:11
cyberpear_cyberpear09:11
lem-fr5lem-fr09:11
rkta left09:11
BrainWork aaaaaaaaaaaaaaaaah09:11
polyrob_polyrob09:11
JackMc_JackMc09:11
BrainWork i dont miss this shit about irc at all09:11
Cathy joined09:11
afisher_afisher09:11
rkta_ joined09:11
grumble joined09:11
lebster_lebster09:11
rkta_rkta09:11
BrainWork hmm, not sure what -p does off the top of my head so the answer to that would be a big fat no09:11
osse Because if you add partial changes to one of the files the hook modifies the hook will add the whole thing09:11
eirc joined09:11
Nizumzen_Nizumzen09:11
steven-steven09:11
BrainWork hmm, wasnt aware thats even a thing09:11
osse In that case there is no problem.09:11
Whiskey joined09:11
Peng__Peng09:11
c0san0stra_c0san0stra09:11
osse what don't you miss about irc?09:11
BrainWork netsplits09:11
bittyx joined09:12
BrainWork :(09:12
big hairy netsplits09:12
mniip left09:12
jan61 joined09:12
SJr joined09:12
osse oh09:12
eldritch joined09:12
BrainWork thing i dont get is, its a solved problem now in 2019. there are tons of decentralised systems that could do a netsplit-proof irc09:12
i guess nobody has the desire to any more, as irc is slowly dwinding and only us technical types seem to be left09:13
dwindling*09:13
lucasseikioshiro joined09:13
BrainWork anyway that's a little OT09:13
hmm09:14
how to i ensure this pre-commit hook is added to all copies of the repo?09:14
e.g. fetched when someone clones or pulls09:14
pandem1 you can't09:14
BrainWork i can't put it server-side?09:14
that would be a fix if i can09:15
but then the server side cant git-add09:15
hmm09:15
osse You can put it server-side as part of the repo, and then have users install it (via a symlink for example)09:15
mobidrop_mobidrop09:15
pandem1 i don't think github for example allows hooks so depends on where your server-side is09:15
tabakhase fairly common to have ".git-hooks" and have the user link that into .git/hooks or such ye09:16
rcn joined09:16
mniip joined09:16
tabakhase (as without that "git clone" would be a RCE ;D)09:17
avu joined09:17
sostenuto joined09:17
SpeakerToMeat joined09:17
de-vri-es joined09:17
inscrutable joined09:17
kashike joined09:17
daurnimator joined09:17
qpdb joined09:17
no_maam joined09:17
doug16k joined09:17
markmarkmark joined09:18
level3 joined09:18
andi_ joined09:18
pie_ left09:18
Helenah joined09:18
swalladge joined09:18
jrun joined09:18
mdk joined09:18
sjohnson joined09:19
batrick joined09:19
_flow_ joined09:19
eblip joined09:19
gitinfo joined09:19
ChanServ set mode: +o09:19
BrainWork i made a directory called hooks with the scripts in off the root of the source tree and a ./install.sh file that can be ran to cp them into the hooks dir09:20
i'll put a README.md in it09:20
that should suffice :)09:20
worst case scenario if its not installed the version numbers of modules dont auto increment, its not really the end of the world in the short term09:21
Whiskey left09:21
osse now with all that work done I still think doing it in cmake would be the best approach :P (sorry)09:21
Thorn joined09:22
figuinhas left09:22
Whiskey joined09:22
feriman joined09:22
BrainWork osse, perhaps, ive looked into it, each module would need a separate template file e.g. modname_version.h.in09:22
which is copied to modname_version.h and incremented09:23
osse sort of, yes.09:23
BrainWork perhaps more suitable for a project's version number rather than a modules version number?09:23
osse not sure there's a meaningful difference between those two things09:23
BrainWork a project has one version number, many modules each have their own version number09:24
means lots of version header templates :)09:24
osse I suppose you could put all into one header09:24
the copying is done by cmake itself via configure_file(). you just need to set a variable to the correct value09:28
KeyJoo joined09:30
bytefire joined09:31
osse n owait09:31
that means doing at build time.09:32
which makes sense to me, but you can't simply increment a number. You must figure out what the number should be09:32
BrainWork yeah09:33
thats useful for releases, when you know youre releasing "version 1.3"09:33
bytefire hi, i have a repo with following structure: repo-root/{a.txt, b.txt, sub-dir/{a.txt, b.txt}}. i want to remove everything under repo-root/ dir and copy contents of sub-dir/* to repo-root so repo-root has a.txt and b.txt which are currently under sub-dir/09:33
how can i do this so as to achieve best git history?09:34
i.e. if after this change, someone does `git log a.txt` they get history of sub-dir/a.txt09:35
is it even possible?09:35
BrainWork https://i.snipboard.io/JNrQSt.jpg <-- got the version numbers working great :)09:36
i dont have to worry about their values any more, just commit and forget09:36
TomyLobo joined09:37
osse goddammit, thesaurus.com doesn't have any alternatives for "commit" that starts with F09:37
can I get an F in the chat bois09:37
roadie joined09:38
osse bytefire: git log --follow a.txt09:38
bytefire: alternatively you can use filter-branch to produce a new repo that looks like sub-dir was the root dir all along, but that's a detructive operation09:39
cdunklau osse: "finalize"?09:39
osse finalize and forget09:39
I can dig it09:39
BrainWork why f?09:39
cdunklau osse: fertigstellen :D09:40
BrainWork as in fire-and-forget?09:40
cdunklau although that's a separable verb, irritatingly09:40
BrainWork fabricate09:40
CalimeroTeknik joined09:41
SerialSmile left09:41
cdunklau osse: foist09:41
BrainWork could just change the last word and have 'commit-and-care-less'09:41
cdunklau i like that the best09:41
foment?09:41
osse FERTIGSTELLEN UND VERGESSEN!!!09:41
BrainWork ferment :D09:41
cdunklau forcefeed09:41
cmon there are TONS09:41
osse oh, here's an older meme (that checks out): !!!!!1enz09:41
I mean einz09:41
cdunklau fortend09:41
freeze is ...kinda close? i guess?09:42
furnish09:42
ok i'll stop09:42
osse: "eins", or is the misspelling part of the meme?09:43
there's another version too !!!1eleventy09:43
osse cdunklau: Maybe. I thoguht it was spelled einz09:43
cdunklau it _sounds_ like einz09:43
depending on where you are09:44
osse yeah but it has to be german, I think. systemd and whatnot. PID EINS09:44
pie_ joined09:44
cdunklau i think we're gehen a bisschen too weit09:44
spacefrog left09:44
bytefire osse: thanks. this change is destrucive anyway because i'll be deleting whatever is in root. but --follow will be good09:45
osse bytefire: I meant destructive in the "rewriting history" sense09:45
aka. in the "everybody essentially has to reclone" sense09:45
bytefire ah i see. got it09:47
mikami left09:49
Phylock joined09:49
mikami joined09:50
sidetrack joined09:51
inscrutable left09:52
sidetrack left09:55
crose left09:55
crose joined09:56
bytefire osse: does it make any difference to git history if i delete contents of repo-root/ first, make a commit, then add files from sub-dir/ and make a second commit? or is this the same as doing both in same commit?09:57
osse bytefire: git doesn't care09:58
bytefire thank you09:59
osse: i'll pray that your cattle grows and that you have many sons09:59
rfuentess__ joined10:03
Love4Boobies It took me 2 minutes to realize why termdebug wasn't working in Vim. I forgot to install gdb.10:03
Love4Boobies feels retarded.10:04
multiproc joined10:05
Novae joined10:05
rfuentess left10:07
varesa_varesa10:19
sidetrack joined10:21
LearnAllTheTime joined10:22
Garen left10:24
sauvin joined10:24
sidetrack left10:25
Garen joined10:26
BeerLover left10:38
BeerLove_ joined10:39
stux|RC left10:39
gxt joined10:42
Parse left10:49
roadie left10:53
GreyArea joined10:56
GreyArea Hi there, I've got myself all confuzzled with git and wonder if anyone can help unconfuzzle me. https://paste.centos.org/view/3568ff8910:58
In the above paste I've got two origin/master's and not sure why10:58
osse GreyArea: run git for-each-ref | grep master10:59
GreyArea: my guess: you have origin/master as usual, as well as a local branch whose name is actually "origin/master"10:59
Anthaas left10:59
osse aka. le confuse xdddd10:59
Stummi (lately I found a repo which has a branch called "HEAD")11:00
Anthaas joined11:00
cdunklau Stummi: oh god11:01
stux|RC joined11:01
enoq joined11:01
GreyArea osse: https://paste.centos.org/view/c15a466211:01
Stummi I am wondering if this can happen with simple mistyping a command? You would have to tell git to *not* translate HEAD into anything, wouldn't you?11:01
cdunklau Stummi: how'd you do that11:01
GreyArea osse: Right, yeah probably I made a typo somewhere :|11:01
cdunklau Stummi: i mean, git checkout -b HEAD11:01
fatal: 'HEAD' is not a valid branch name.11:01
Stummi cdunklau, thats what I am wondering11:01
osse GreyArea: git branch -d origin/master11:02
shouldn't be a problem11:02
cdunklau Stummi: where do you see this branch11:02
Stummi cdunklau, its a private repo on github11:02
cdunklau Stummi: no i mean how did you find out it has a branch named HEAD11:02
Stummi its listed by the github UI in the branches11:03
cdunklau lol11:03
GreyArea osse: Ah, that looks cleaner now - thanks man :)11:03
osse git update-ref refs/heads/HEAD abc1234whatever11:03
Stummi cdunklau, okay, just tried it. git push -u origin master:HEAD does this: https://github.com/Stummi/sandbox/tree/HEAD11:04
GreyArea so I'm at "28c5db7 (HEAD -> master, origin/master) Updating READMD.md11:05
but git update-ref refs/heads/HEAD ƒ–28c5db7 gives me not a valid sha1 error - is that what you meant by abcwhatever?11:05
but it looks OK, to me at least.11:06
cdunklau Stummi: huh11:07
osse GreyArea: my command was just to show a way to create a branch named HEAD. Don't actually do it :P11:08
As for the error, for update-ref you have to give it the full 40 character sha111:09
cdunklau Stummi: that... looks like the bug11:09
osse update-ref ain't having any of your abbreviated shit11:09
cdunklau *a bug11:09
Moongoodgirl does update-ref validate the hash that you give it?11:12
is_null left11:13
grawity update-ref accepts unambiguous abbrevs just fine11:13
g00s left11:14
is_null joined11:14
osse you are right11:16
Moongoodgirl: seems to, yes.11:17
bvdw left11:18
bvdw joined11:19
TomyLobo left11:32
zulutango left11:32
heftig_heftig11:37
kreyren joined11:40
rardiol joined11:42
GreyArea osse: Right, got it and done, thanks again11:44
lain98 joined11:47
monr0e joined11:47
enoq left11:48
cousteau joined12:02
cousteau left12:04
lavalike is it possible to go back a couple commits and change 1 thing, without screwing up times and dates for historic purposes? (used add -p wrong and ended up with a repetition I just noticed)12:06
dviola joined12:07
Stummi lavalike, easiest to do this is with interactive rebase12:07
bsanford joined12:07
lavalike I know you can do an interactive rebase to remove/squash/reorder commits, didn't know it supported editing them?12:08
Stummi lavalike, make your small fix as a normal commit, then type git rebase "<ref>" to your old commit, place your latest commit right after this and mark it with "f"12:08
lavalike oh that's genius!12:08
you add the modification, and slide it in place, wow (:12:08
T_UNIX joined12:08
osse there is even a flag for commit to make it easier12:09
beastDiv_ left12:09
osse git commit --fixup <commit that needs fixing>12:09
then git rebase --autosquash12:09
lavalike that only works right at the tip of a branch or did I misunderstand you12:10
davve osse: that's an awesome command12:10
lavalike hm I think I see you give it hash of the one you would slide on top with rebase -i12:10
osse davve: correct!12:10
lavalike: oui12:10
lavalike so it basically says: this technique is so awesome I'll make a command out of it12:11
I approve12:11
mikami left12:12
Stummi cdunklau, sorry for the delay. Do you think its a bug in git or github?12:13
gloomy left12:14
_ikke_ Inconceivable! :P12:14
cdunklau Stummi: i would expect git to reject that12:14
but i'm probably naive :)12:14
Stummi cdunklau, well, git *does* some measures to avoid a branch named "HEAD" created but fails to do so in other situations. So its at least inconsistent12:15
feriman left12:15
cdunklau Stummi: right. i suspect the fiddly bit is in how <dst> is handled by git push12:16
Stummi technically, theres probably nothing wrong with a "HEAD" branch. It probably just "confuses" some git commands :)12:16
gloomy joined12:16
cdunklau Stummi: looks like `git branch HEAD` does `git check-ref-format --branch HEAD`, which fails12:18
but `git push` doesn't... and it doesn't look like it's just github that accepts that, i just testing pushing to a bare repo locally and it worked... the bare repo has refs/heads/HEAD now12:23
coco joined12:24
androi joined12:25
androi hi, I would like to pull a request but the button isn't showing instead it's displaying this message: "Able to merge. These branches can be automatically merged."what do i have to do?12:25
Raging_Hog joined12:26
cdunklau androi: probably ask somewhere related to github :)12:26
!github12:26
gitinfo GitHub is a !3rdparty commercial service offering freemium !hosting services for repositories & projects. https://github.com/features12:26
cdunklau hm12:26
¯\_(ツ)_/¯12:26
i'm sure there's a factoid for that12:26
androi yeah but they are all sleeping or just ignoring me ^^12:27
royal_screwup21 joined12:29
nedbat androi: what do you mean, "pull a request"? Do you mean merge a pull request?12:30
androi i m not sure either.. it's a fork repository and when i've done my changes i have to press a button "pull request"12:32
roadie joined12:33
_ikke_ androi: are you the one making the pull request, or the one needing to merge it?12:33
igemnace left12:33
nedbat androi: i guess it isn't clear what you are looking at exactly. GitHub has really good help about the way to do things: https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests12:33
gxt left12:34
androi I am the one who is initiating a pull request if that was the question12:34
oatmealraisin joined12:35
_ikke_ androi: then you most likely don't have permission to merge it12:35
androi but the button is missing, so i'm not able to do it.. did the owner maybe not merge my last pull request?12:35
gxt joined12:36
TheFuzzball joined12:36
androi ok thx12:36
nedbat androi: that wouldn't matter.12:36
androi how do i get the current version of the fork repository? pull/ fetch origin master?12:37
crose left12:37
crose joined12:38
cyberanger_cyberanger12:39
cyberangerZachGibbens12:39
gxt left12:42
roadie left12:43
androi left12:44
ztrawhcseelibrokeit12:48
planetcall|work left12:49
planetcall|work joined12:49
settermjd joined13:01
Sonicbit joined13:02
settermjd hey folks, I’ve created a patch file using git diff branch1…branch2 — <path/to/file> > file.patch but am unable to apply it using git apply, as it fails with „patch does not apply“. Just wondering if there is something special about the git diff command wrt patch files.13:03
dionysus70 joined13:03
_ikke_ settermjd: try git apply -313:03
settermjd Thanks.13:03
Sonicbit left13:03
_ikke_ settermjd: git apply by default assumes it will apply cleanly13:03
settermjd Ah, gotcha. Thanks _ikke_.13:04
enoq joined13:04
settermjd There were conflicts, but it seems to have done most of the work now. :-)13:05
dionysus69 left13:05
dionysus70dionysus6913:05
ExeciN joined13:06
def_jam joined13:08
eb0t_ joined13:08
ExeciN left13:09
eblip left13:09
eb0t left13:10
gloomy left13:12
mikami joined13:15
roadie joined13:19
iz16 left13:21
dionysus69 left13:23
iz16 joined13:24
Darcidride joined13:25
breakingsad left13:25
Darcidride left13:29
dionysus69 joined13:30
jrun left13:30
Sonicbit joined13:34
prepend joined13:45
Noti joined13:46
SteffanW left13:46
Moongoodgirl lavalike: You can also do an interactive rebase, change the `pick` of the commit with the mistake to `edit`, run the rebase, fix it, amend, and then continue13:46
…which…sounds more complicated than it feels, and sounds more complicated than the other methods >.>;13:47
of course, all of these rewrite history, so !rewrite13:47
gitinfo Rewriting public history is not recommended. Everyone who has pulled the old history will have to do work (and you'll have to tell them to), so it's infinitely better to just move on. If you must, you can use `git push --force-with-lease <remote> <branch>` to force (and the remote may reject that, anyway). See http://goo.gl/waqum13:47
Telerophon joined13:48
Darcidride joined13:49
fahadash joined13:53
mowcat joined13:55
apoos_maximus left13:56
mario-vimal joined14:02
lucasb joined14:06
Darcidride left14:07
Darcidride joined14:07
macaronus left14:09
Siecje joined14:13
mario-vimal left14:13
sp00nf0rk joined14:14
Siecje I have a branch with a few commits that adds a new class to the code. I'm trying to rebase on master but I get a merge conflict. In a three way diff I can see the class in each version. Why is that?14:14
osse Siecje: git rebase managed to apply one commit, but not a subsequent one maybe?14:15
Siecje How do I combine commits before rebase?14:15
penguu how do i keep track of what changes between production and staging environment?14:15
i understand i remove the git repo from production14:16
osse in a rebase the sides of the conflict are just the the state so far versus the upcoming commit14:16
Siecje: an interactive rebase will do the trick. mark commits fixup/squash14:16
git rebase -i master14:16
Siecje I'll try that.14:16
penguu if i want to get a copy of the production back to work on, do i just overwrite the directory with the production files?14:16
Siecje osse: I end up with the same merge conflict.14:18
osse then maybe some of that class is already in master and jsut jsut forgot about it14:19
i dunno14:19
sp00nf0rk left14:19
Siecje It's not.14:21
I'll just resolve the merge conflict.14:21
figuinhas joined14:22
apoos_maximus joined14:23
osse I would be curious to see git log -p afterwards14:23
zumba_addict left14:24
lavalike I forget what is the manpage that explains the syntax for things like name@{u} or name^ and ^name and ^name^14:25
grawity man gitrevisions14:25
gitinfo the gitrevisions manpage is available at https://gitirc.eu/gitrevisions.html14:25
lavalike appreciate it14:27
oatmealraisin left14:30
mark4 joined14:32
mark4 so i just created a tag but want to change it, can i rename a tag?14:32
i did not push14:32
git tag -a zzz -m "zzz" i just want to change it14:32
grawity just delete and create it again14:33
mark4 how do you delete it?14:35
grawity git tag -d14:35
mark4 left14:35
mark4 joined14:36
mark4 left14:36
gxt joined14:37
Shentino_ joined14:37
royal_screwup21 left14:38
dunpeal joined14:38
mark4 joined14:39
dunpeal Are there any interesting VCS ideas beyond DAG?14:39
mark4 grawity, ty for the help i keep getting disconnected14:39
grawity darcs?14:39
dunpeal grawity: what's interesting about DARCS?14:39
mark4 im doing wifi tether through phone to be here, cant get on via works network :)14:39
mark4 left14:40
truthseeker_ joined14:40
osse Fossil is pretty different14:40
https://www.fossil-scm.org/home/doc/trunk/www/fossil-v-git.wiki14:40
relipse joined14:40
relipse I have a fork which is remote origin and I have another repo abc, how do I make the fork up to date with abc?14:41
dunpeal GIT: Sprawling, incoherent, and inefficient14:41
FOSSIL: Self-contained and efficient14:41
Very objective analysis.14:41
osse relipse: git remote add upstream {url here}; git fetch upstream; then rebase or merge or whatever you want14:41
Shentino left14:42
pandem1 dunpeal: Keep in mind that you are reading this on a Fossil website, and though we try to be fair, the information here might be biased in favor of Fossil, if only because we spend most of our time using Fossil, not Git.14:42
royal_screwup21 joined14:42
Moongoodgirl Fossil is based on sqlite14:42
I dunno that that's a /good/ thing14:43
pandem1 based on?14:43
Moongoodgirl apparently, according to that comparison thing14:43
SteffanW joined14:43
Moongoodgirl having things be flat files makes it easier to hack them if ever you should need to14:43
pandem1 oh yeah, i know it was created for managing sqlite but not sure if it actually used it14:43
dunpeal osse, pandem1: what specific ideas are innovative in Fossil? from what I can tell, it just has a few extra features (like managing a wiki)14:43
relipse osse: do I use merge or rebase or does it matter?14:44
Noti left14:44
Moongoodgirl if a git repository gets corrupt, you can maybe dig into the plumbing and fix it14:44
BeerLove_ left14:44
osse relipse: a matter of opinion. if you're not sure, go for rebase14:44
Moongoodgirl if a fossil sqlite database gets corrupted…14:44
osse dunpeal: I don't really know. Haven't used it much14:44
pandem1 afaik the concept of branch makes more sense in fossil but i never used it either14:44
relipse thanks osse that worked!14:44
bytefire left14:44
dunpeal pandem1: how so?14:45
btw, hg also has a slightly different concept of branch, but imho it actually just complicates things compared to git14:45
_ikke_ hg has several concepts for branches14:45
dunpeal overall neither hg or bzr add any interesting ideas to the core idea of DAG in git14:46
_ikke_: just two: branches and bookmarks14:46
pandem1 Unlike in Git, branch names in Fossil are not purely local labels. They sync along with everything else, so everyone sees the same set of branch names.14:46
and i think branches are also visible after merging, so what was done in what branch for example14:46
dunpeal pandem1: in what sense are branches in git "purely local"?14:47
pandem1 git branches aren't really intuitive anyway14:47
osse I suppose you could define four broad categories: Git and git-like, darcs, fossil, and the rest (svn, cvs, etc.)14:47
pandem1 idk, thats from the fossil website14:47
dunpeal "i think branches are also visible after merging" -> sounds like Hg branches14:47
osse: DARCS and Fossil should have a ton of different fundamental ideas to be their own categories14:48
pandem1 if you want to hear the opinion of fossil creators then read the link14:48
dunpeal pandem1: yeah, I'm skimming the page, and I see some interesting features though nothing groundbreaking14:48
howdoi joined14:49
dunpeal osse: what core ideas does DARCS introduce?14:49
pandem1 i think the point that git may not be the best VCS for most projects makes sense14:49
and git definitely is not intuitive to use14:50
dunpeal I disagree with the latter for sure :)14:50
g4570n joined14:50
dunpeal if you are versed in basic graph theory (and as a programmer, you should be) Git is the most intuitive of all VCSes14:50
osse dunpeal: seems to me that DARCS completely forgoes the DAG approach, and rather considers the hgistory to be a bunch of patches that can both be seen as a set AND as a sequence of patches14:50
pandem1 i'm fairly capable of using it by now, but every time i see my colleagues using git i think of that14:51
osse it just sounds completely different to me14:51
dunpeal pandem1: most users just never bothered to learn Git properly14:51
pandem1 because it is difficult to use14:51
dunpeal osse: history*?14:52
osse yes14:52
mikami left14:52
dunpeal osse: interesting, if it's not DAG based then yes, it's different.14:52
SerialSmile joined14:53
dunpeal I guess patch-based vs snapshot-based is a fairly fundamental idea.14:53
SteffanW left14:53
bsanford left14:53
aesthetik joined14:53
bsanford joined14:54
dunpeal OK, I think I'm starting to get it.14:54
It just creates a dependency hierarchy between patches.14:54
And all you have in the repo is patches.14:54
So the repo is a set of patches, partially ordered.14:55
Neat, though will lead to obvious performance problems.14:55
e.g. evey time you you look at a particular patch, you may have to walk the tree back to its root to get the snapshot it creates.14:56
Avoiding this is exactly why git is snapshot-based.14:56
sevagh joined14:57
dunpeal Exporting/importing patches should be easier though.14:57
Siecje left14:58
deltab left14:58
sevagh i'm having trouble with `git branch -r --merged master `. in some of my git checkouts, this returns different lists of branches (some branches missing, etc.). how can i investigate why? ideally i'd like all of my git checkouts to return the full set of results on master all the time15:03
greggerz joined15:04
deltab joined15:08
settermjd left15:09
feriman joined15:10
Inline joined15:11
quesker_quesker15:15
sidetrack joined15:16
quesker left15:17
bsanford left15:19
bsanford joined15:20
dviola left15:21
greggerz left15:22
bsanford left15:22
bsanford joined15:23
Sleepy63 left15:23
oatmealraisin joined15:25
sidetrack left15:27
sidetrack joined15:27
dionysus69 left15:29
dionysus69 joined15:30
sidetrack left15:32
enoq left15:33
dionysus69 left15:34
greggerz joined15:35
omnireq_ left15:37
thiago joined15:40
gopper joined15:43
sevagh left15:44
boombatower joined15:47
TheFuzzball left15:49
coco left15:49
TheFuzzball joined15:51
bsanford left15:52
bsanford joined15:53
dmc left15:54
bsanford left15:54
bsanford joined15:55
royal_screwup21 left15:56
prepend left15:56
coco joined15:57
codedmart_codedmart15:58
sQVe left15:59
dunpeal left15:59
rsrx joined16:00
shady_traveller left16:00
dmc joined16:06
mobidrop left16:07
rewt left16:11
rewt`` joined16:11
rewt``rewt16:11
jrun joined16:13
jrun is there a way to generate ordered patched from commits without the email headers?16:13
penguu how do iget my old file back16:14
i have a modified file in the staging area16:14
i want to reset it16:14
hussam left16:15
penguu git checkout -- myfile.ext16:16
maryo_s joined16:19
omnireq joined16:20
thiago left16:24
jaeckel joined16:25
sidetrack joined16:26
TheFuzzball left16:27
jubalh joined16:28
jubalh How would I get git diff to display me the difference of the current branch to when it was forked from master (and not current master) ?16:28
oxymoron93 left16:29
rfuentess__ left16:30
TheFuzzball joined16:32
Phylock left16:32
royal_screwup21 joined16:32
planetcall|work left16:35
chele left16:35
mowcat left16:36
rostam joined16:36
mowcat joined16:41
settermjd joined16:43
LiENUXLiENUS16:44
Phylock joined16:46
tretinha left16:46
milkt left16:46
rsrx left16:48
monr0e left16:49
_ikke_ jubalh: git diff master...16:51
(including the 3 dots)16:51
Love4Boobies left16:52
causasui joined16:52
SerialSmile left16:53
justanotheruser left16:54
BeerLover joined16:57
justanotheruser joined16:58
sidetrack left16:58
epollsyr16:58
Krematorium joined17:00
Krematoriumkremator17:02
syr left17:04
__salt left17:05
_salt joined17:07
is_null left17:09
is_null joined17:09
royal_screwup21 left17:10
emsjessec left17:12
syr joined17:12
thiago joined17:13
mat001 joined17:13
royal_screwup21 joined17:16
greggerz left17:16
bvdw left17:18
ezio joined17:19
bvdw joined17:19
ezio how can I undo a commit that I just made, but keep the code that I committed to commit to another branch17:19
_ikke_ 2 approaches: copy the commit and reset the branch, or reset the changes to float them to the other branch17:20
ezio oh god I really messed up17:20
_ikke_ ezio: can you elaborate?17:21
ezio just merge into a new branch?17:21
and then reset hard?17:21
_ikke_ ezio: cherry-pick17:21
ezio If I branch from here ... It'll be a new branch I think17:21
Yeah.17:21
_ikke_ ezio: do you still need to create the new branch?17:21
ezio I'll branch and push the new branch, switch back and hard reset?17:22
ugh. Why do I always do this.17:22
k pushed the new branch17:23
stux|RC left17:23
ezio oh thank god17:24
thank you17:24
_ikke_ You did most if it yourself :)17:25
stux|RC joined17:25
\umeowray17:27
wadadli joined17:30
greggerz joined17:30
maryo_s left17:31
hussam joined17:32
TheFuzzball left17:32
mat001 left17:35
royal_screwup21 left17:35
mat001 joined17:35
wootehfoot joined17:38
sidetrack joined17:38
crose left17:40
omnireq_ joined17:41
settermjd left17:42
matsaman joined17:42
sidetrack left17:44
omnireq left17:45
moviuro_moviuro17:46
maryo joined17:47
prepend joined17:48
KeyJoo left17:49
durham joined17:50
dionysus69 joined17:52
matsaman_ joined17:56
matsaman left17:57
DanteD joined17:59
davispuh joined17:59
akem__ left18:00
akemhp joined18:00
DanteD I'm using git to develop but now I want to make a public repository.. can I somehow hide all private dev commits from public ones?18:00
relipse no you might as well start fresh over18:01
selckin only if you remove them18:01
mmattice DanteD: squash them all?18:01
DanteD but so am I supposed to make only publish quality commits if I want have public repository?18:01
I can easily start a new repo18:02
mmattice why does it matter if you publish only quality commits?18:02
are you not human?18:02
avu DanteD: if you're concerned about master always being usable/stable, don't develop on master18:02
DanteD mmattice: hmm. I guess it might be ok18:03
mmattice or write tests that keep you from breaking.18:03
lacrymology left18:05
dijitol joined18:06
gareppa joined18:10
kerframil joined18:14
multiproc left18:16
dionysus69 left18:16
jubalh _ikke_: thanks!18:17
matsaman_matsaman18:17
_ikke_ np18:17
matsaman I remember a situation in the past where I needed to use 'git log -r' to see information missing from plain 'git log'18:17
right now I'm noticing I need 'git log -m'18:18
is there an overlap? Should I just always use git log -m -r both?18:18
really don't understand why the default 'git log' hides many things18:18
selckin such as?18:19
matsaman such as any changes made from any commits from a 'merge commit'18:19
rafasc joined18:20
matsaman if I trusted the commit messages, I wouldn't need to scrutinize the actual changes made18:21
but obviously I don't, so why would I get the changes part of the time and only the message part of the time, I don't understand the rationale18:21
is there a command I should be using other than git log -m -p?18:23
like git log-that-doesnt-play-games ?18:23
selckin guess you want --graph -p18:23
figuinhas left18:24
gareppa left18:24
DanteD left18:24
matsaman that appears to include what I want because it uses --topo-order18:25
the man page's explanation of '-m' is very straightforward, though18:26
it appears to serve a singular purpose: to not omit that which is by default omitted18:26
selckin then make an alias and be happy18:26
matsaman I'm not happy with magic18:26
and I still don't know when to use -r vs -m18:26
ferdna joined18:26
selckin subversion still exists, nice linear history no mather what18:27
ezio left18:27
nkuttler i recently found my long lost cvs repos on an ancient laptop ide disk <318:28
matsaman it doesn't need to be linear, it needs to not be pretending things didn't happen18:28
lacrymology joined18:28
matsaman I wonder if when I used -r in the past it was with git diff18:29
parse joined18:29
AtumT joined18:29
matsaman or something using git diff-tree18:30
BeerLover left18:31
andreas303 left18:33
Darcidride left18:33
Nozzzle joined18:34
Nozzzle left18:36
T_UNIX left18:37
andreas303 joined18:37
selckin compare the output on the kernel repo & compare with gitk18:37
then you'll start to understand18:37
most repos don't really use merges heavily enough to notice18:38
robertparkerx How can I make it so I don't have to `git pull origin master` and just `git pull`18:38
_ikke_ robertparkerx: git branch --set-upstream-to origin/master master18:39
dionysus69 joined18:39
matsaman I understand it's different, what I don't understand is why18:39
robertparkerx Sweet! Thank you _ikke_18:39
duderonomy joined18:40
mowcat left18:40
roadie left18:42
roadie joined18:42
mowcat joined18:43
rewt left18:43
rewt`` joined18:43
rewt``rewt18:43
cjohnson_cjohnson18:45
leeN joined18:45
truthseeker_ left18:46
LearnAllTheTime left18:55
settermjd joined19:01
jan61jan619:05
n2o joined19:07
multiproc joined19:08
Graypup_ left19:08
rostam left19:11
yunk joined19:11
yunkH2Q19:11
g00s joined19:12
demize left19:16
TheFuzzball joined19:18
demize joined19:19
Raging_Hog left19:21
iam730 joined19:23
seni joined19:26
seni I just did a git reset --hard origin/master when I shouldnt have. thought that branch had what I wanted I was wrong. any way of recovering?19:26
selckin !reflog19:27
gitinfo The git reflog (`git log -g`) temporarily (90 days by default) snapshots your branch states at each operation that changes the branch, making it easy to undo e.g. merges and rebases. The usual warnings about !rewriting/undoing history apply. See http://sethrobertson.github.com/GitFixUm/ for full details.19:27
seni actually it was because I had the wrong window open lol19:27
matsaman yeah you only need a commit to reference to get back19:28
seni thanks19:29
apoos_maximus_ joined19:29
owlscientist joined19:29
TheFuzzball left19:31
apoos_maximus left19:33
TheFuzzball joined19:34
gopper left19:35
Sasazuka joined19:36
sidetrack joined19:38
sidetrack left19:43
TheFuzzball left19:44
lmat left19:45
owlscientist left19:45
akemhp left19:46
j7k6 left19:46
j7k6 joined19:47
n2o left19:48
YuGiOhJCJ left19:48
fflam left19:52
Hello71 left19:53
Hello71 joined19:59
relipse left20:01
owlscientist joined20:08
g00s left20:08
lmat joined20:13
maryo left20:18
howdoi left20:20
j416 seni: not if you had uncommitted changes, but otherwise you can just do the same back to whatever commit you were on before. (the reflog will tell you that if you forgot)20:20
matsaman left20:20
m0viefreak joined20:20
Celelibi left20:21
Lucas_Gray joined20:25
TheFuzzball joined20:25
apoos_maximus_ left20:26
apoos_maximus_ joined20:26
Fernando-Basso joined20:27
TheFuzzball left20:28
monr0e joined20:28
limarfrek joined20:31
shored1 left20:32
kerframil left20:34
shored joined20:35
sidetrack joined20:37
Jitta joined20:38
limarfrek left20:39
sidetrack left20:41
TheFuzzball joined20:48
crose joined20:48
H2Q left20:48
ttl joined20:49
TheFuzzball left20:51
cjohnson I hate repos full of merges :(20:53
But people are scared about rebases20:53
raymond joined20:57
rafasc I hate repos full of rebases that throw away context information.20:59
and I hate that people think that they need to choose to use either merge or rebase, when the real strength is using both.21:00
_ikke_ I hate repos that take any if these at extrems :)21:00
extremes21:00
brettgilio left21:03
cjohnson I would be curious to see an example repo where the merges provided any valuable context21:03
The way I've always worked, they provide nothing of value whatsoever21:03
synx joined21:04
cjohnson And they screw with the idea of binary artifacts, making it harder to determine if the artifact you are using is "latest" or not21:04
brettgilio joined21:04
brettgilio left21:04
sidetrack joined21:04
cjohnson The binary gets produced on the branch and tagged with teh git sha. In a rebase strategy, the binary gets tested and promoted to the production binary, retaining the same sha, which will match the latest sha in the master branch21:05
jaziz joined21:07
brettgilio joined21:07
_ikke_ cjohnson: that's only one possible workflow, and not the most typical uses of branching / merging21:08
rafasc in fact, that workflow essentially throws away the idea of "branches", as nothing can really branch-out.21:09
sidetrack left21:09
_ikke_ !gitflow21:09
gitinfo The description of the gitflow branch workflow model is at http://nvie.com/posts/a-successful-git-branching-model/ while a tool to help implement this workflow is at https://github.com/petervanderdoes/gitflow See http://sethrobertson.github.com/GitBestPractices/#workflow for other workflow suggestions/references21:09
_ikke_ !githubflow21:09
gitinfo [!github_flow] This is the workflow followed by github: http://scottchacon.com/2011/08/31/github-flow.html21:09
settermjd left21:09
rafasc cjohnson: what happens when you have a branch with a binary tagged, and someone else pushes to master before you?21:10
there's no way to do it without changing the commit hashes.21:11
AtumT left21:11
akemhp joined21:18
akemhp_ joined21:19
akemhp_ left21:19
grumble left21:26
gurmble joined21:27
Phylock left21:27
dionysus69 left21:28
dionysus69 joined21:28
gurmblegrumble21:28
xkr47 joined21:30
sp00nf0rk joined21:32
ttl left21:33
royal_screwup21 joined21:35
Lucas_Gray left21:37
sp00nf0rk left21:40
daurnimator left21:41
Phylock joined21:41
roadie left21:43
bambanx joined21:45
Celelibi joined21:46
daurnimator joined21:46
brettgilio left21:48
HoffmanHighba1121:52
gavlee left21:52
Highba11Hoffman21:53
zulutango joined21:53
royal_screwup21 left21:54
daurnimator left21:55
daurnimator joined22:08
multiproc left22:08
fructose0fructose22:09
greggerz left22:10
prepend left22:13
feriman left22:14
apetresc left22:15
BlackMaria left22:15
feriman joined22:16
apetresc joined22:16
oatmealraisin left22:16
crose left22:17
owlscientist left22:20
mostlybadfly joined22:21
feriman left22:21
feriman joined22:21
coco left22:22
ethernether joined22:23
owlscientist joined22:23
owlscientist left22:23
jan6 left22:24
level3 left22:25
owlscientist joined22:26
owlscientist left22:27
j7k6 left22:27
mat001 left22:27
jan6 joined22:27
greggerz joined22:28
Jitta left22:29
mat001 joined22:30
jcbitter left22:31
Sonicbit_ joined22:31
level3 joined22:31
Sonicbit left22:32
j7k6 joined22:38
Phylock left22:39
mikecmpbll joined22:40
wootehfoot left22:44
Sleepy63 joined22:45
cdown left22:45
cdown joined22:46
shicks2525 left22:48
shicks2525 joined22:50
dijitol left22:50
sidetrack joined22:54
oatmealraisin joined22:55
ethernether left22:56
thiago left22:57
sidetrack left22:59
Mattiaslndstrm joined23:00
netmonkhegemoOn23:01
Mattiaslndstrm left23:02
level3 left23:04
sidetrack joined23:05
CalimeroTeknik left23:09
royal_screwup21 joined23:11
jelmer joined23:13
sidetrack left23:13
sidetrack joined23:13
bvdw left23:18
wodim left23:18
wodim joined23:19
bvdw joined23:19
greggerz left23:19
Fernando-Basso left23:22
level3 joined23:22
kerframil joined23:25
oatmealraisin left23:26
brettgilio joined23:26
d^sh_ left23:28
kremator left23:37
BlackMaria joined23:44
oatmealraisin joined23:45
thiago joined23:47
leeN left23:49
tgunr left23:51
howdoi joined23:53
bremner` joined23:55
lmat left23:57
thomasross_ joined23:59
thomasrossGuest3452223:59
Guest34522 left23:59
thomasross_thomasross23:59

Logs Search ←Prev date Next date→ Channels Documentation