cc___ has quit [Ping timeout: 246 seconds]
chomwitt has joined #neo900
jcarpenter2 has quit [Remote host closed the connection]
jcarpenter2 has joined #neo900
err0r3o3_ has joined #neo900
Pompingsquatsley has joined #neo900
jcarpenter2 has quit [Ping timeout: 240 seconds]
MonkeyofDoom has quit [Ping timeout: 246 seconds]
metacollin has quit [Read error: Connection reset by peer]
err0r3o3 has quit [Ping timeout: 246 seconds]
metacollin has joined #neo900
jonsger has joined #neo900
chomwitt has quit [Ping timeout: 264 seconds]
Kabouik- has joined #neo900
Kabouik_ has quit [Ping timeout: 240 seconds]
xmn has quit [Quit: Leaving.]
jonsger has quit [Ping timeout: 240 seconds]
knttl has quit [Ping timeout: 248 seconds]
knttl has joined #neo900
ArturShaik has joined #neo900
ravelo has joined #neo900
Pompingsquatsley is now known as jcarpenter2
tierce_ has quit [Remote host closed the connection]
Pompingsquatsley has joined #neo900
jcarpenter2 has quit [Ping timeout: 248 seconds]
freemangordon has quit [Quit: Leaving.]
Pompingsquatsley is now known as jcarpenter2
rhn has joined #neo900
_whitelogger has joined #neo900
jabawok_ has joined #neo900
jabawok has quit [Ping timeout: 252 seconds]
Pali has joined #neo900
jkepler1 has joined #neo900
jkepler has quit [Ping timeout: 240 seconds]
jkepler1 is now known as jkepler
jonsger has joined #neo900
nlhowell has joined #neo900
cc___ has joined #neo900
ArturSha1 has joined #neo900
ArturShaik has quit [Ping timeout: 240 seconds]
_whitelogger has joined #neo900
jkepler has quit [Quit: jkepler]
l_bratch has quit [Quit: Leaving]
illwieckz has quit [Ping timeout: 248 seconds]
l_bratch has joined #neo900
illwieckz has joined #neo900
xray256 has quit [Ping timeout: 240 seconds]
jkepler has joined #neo900
xray256 has joined #neo900
Kabouik_ has joined #neo900
Kabouik- has quit [Ping timeout: 240 seconds]
jonsger1 has joined #neo900
jonsger has quit [Ping timeout: 264 seconds]
jonsger1 is now known as jonsger
jonsger1 has joined #neo900
jonsger has quit [Ping timeout: 248 seconds]
jonsger has joined #neo900
jonsger1 has quit [Ping timeout: 240 seconds]
arnaudj has joined #neo900
<Joerg-Neo900> ok, hit experts, I have a moot version of project here that I nevertheless want to archive. How to achieve this in git?
<Joerg-Neo900> or would I rather simply copy the project dir, as I did some 40 years now
<nlhowell> you can import it in, for example, a different branch
<atk> Joerg-Neo900: hit experts?
<nlhowell> atk: *git
<Joerg-Neo900> typo
<atk> Joerg-Neo900: I don't have any expertise in assassination
<Joerg-Neo900> but a funny one :-)
<atk> But as for git, nlhowell is right, a branch will do
<nlhowell> atk: do you know an easy way to do this, so that the histories share nothing, without having an "empty" initial commit?
<Joerg-Neo900> thought as much, but no clue how to achieve that
<atk> nlhowell: I did this once with my webpage repo
<atk> let me check
<nlhowell> Joerg-Neo900: you want the two versions to not share any history
<nlhowell> but in git, there's always a root commit
<nlhowell> the cleanest is if this root commit is blank
<Joerg-Neo900> I think when even experienced git users need to think how to do it, I will rather go with cp -a
<atk> nlhowell: yes, you can do it without having to share commits anywhere
<atk> nlhowell: let me just work out how i did it :P
<nlhowell> :) good!
<Joerg-Neo900> on btrfs I even will benefit similar deduplication like on git, eventually
<atk> nlhowell: do you want to merge two repositories in this fashion or do you just want to re-start with a fresh branch with no initial commit?
<nlhowell> I think fresh branch is what Joerg-Neo900 wants
<nlhowell> I don't have this problem right now
<Joerg-Neo900> plus very familiar easy access via unixtools
<nlhowell> but am curious to hear
<Joerg-Neo900> so never mind, guys
<nlhowell> Joerg-Neo900: git has other advantages besides dedup-ing
<Joerg-Neo900> yeah, it can keep data so safe not even experts have an idea how to touch or delete it ;-P
<nlhowell> lol I definitely appreciate that from time to time
* nlhowell recalls a time he deleted ld-linux.so
<atk> ah
<atk> I think I remember how I did this for my website (I used a remote and turned it into its own local branch) but git has a feature to do this without a remote quickly
<atk> git branch --orphan
<atk> er
<atk> I mean checkout -b orphan
<Joerg-Neo900> I can't recall when I last time accidentally rm'ed a file. I however nuked files with git a two dozen times this year
<atk> wait
<atk> no -b
<Joerg-Neo900> not *in* git but *with* git
<atk> (the lack of any interconnection line means they're totally separate)
<nlhowell> ok
<atk> and that was done with git checkout --orphan <branch name>
<nlhowell> so git checkout --orphan <newbranch>
<nlhowell> ok
<nlhowell> --orphan is new to me
<nlhowell> so there you go, Joerg-Neo900, if you change your mind:
<Joerg-Neo900> tbh I often think many usages of git are an excellent example of the hammer-nail syndrome
<Joerg-Neo900> you know, everything looks like a nail when you only got a hammer
<nlhowell> sure, but otoh it sounds like git is the right tool for your job
<nlhowell> the fact that I don't know all the kinds of screwdriver tips in my box doesn't mean the screwdriver is a bad system
<nlhowell> only that I don't use pentalobular screws very much (no apple products ;)
<Joerg-Neo900> not so sure anymore. I realized that I prolly can't change my mind and delete that version later on. And I *for sure* will forget about where that stuff was and how to access it
<nlhowell> git branch would list it
<nlhowell> git checkout would retreive it
<nlhowell> but if you forget to scp it to your next machine...
<Joerg-Neo900> and it tool me only 2 hours just yesterday to *learn* about existence of that command git branch
<Joerg-Neo900> and git checkout would nuke my files in that dir
<atk> :P
<Joerg-Neo900> ok it warns me before
* atk doesn't want to look at Joerg-Neo900's working directory
<nlhowell> me either
<atk> I think git really doesn't work when people who are not sure how to use it are forced to use it.
<nlhowell> Joerg-Neo900: the gospel way to deal with this is not to let untracked files pile up
<Joerg-Neo900> you already did. It's on public ee git
<nlhowell> Joerg-Neo900: but to solve this problem without hindsight
<nlhowell> you can clone to a new copy
<nlhowell> import there
<nlhowell> then push back to the first copy
<nlhowell> no risk to your working directory
<nlhowell> then you can trash the temporary new copy if you want
<Joerg-Neo900> or... I use `cp -a` ;-P
<atk> I would recommend going through the extensions list I provided and finding any files which are auto-generated too
<nlhowell> or keep it around as a second workbench
<atk> those shouldn't be tracked (unless you generate once and then edit afterwards)
<nlhowell> Joerg-Neo900: sure, I'm advocating, but you should obviously do what you're comfortable with
<Joerg-Neo900> atk: I just asked wpwrak again to help
<nlhowell> I guess that the answer to "should git track this" is information-theoretic: did a human put information into this? if so, git should know
<Joerg-Neo900> atk: please consider [2017-09-15 Fri 06:15:41] <metacollin> but, I do know git does not have any sort of include functionality. you can, however, use the ! like that. exclude *, then exclude !/, then exclude !/*.sch, exclude "!/*.bar" etc
<atk> hmm
<atk> I'll look into it
jonsger1 has joined #neo900
jonsger has quit [Ping timeout: 240 seconds]
jonsger1 is now known as jonsger
<Joerg-Neo900> the idea is to have a "default: reject; <pattern> accept; <pattern> accept [...]" logic that doesn't allow new unconsidered files to slip through
<nlhowell> Joerg-Neo900: personally I've had bad results with that strategy
<Joerg-Neo900> how?
<nlhowell> files don't get tracked when they should
<Joerg-Neo900> no, this case is special
<nlhowell> then I lose a disk, or switch machines
<nlhowell> and they're gone
<Joerg-Neo900> it's a filter between ee-full 8internal) and public ee git repo
<nlhowell> ah
<nlhowell> that's a little strange to me
<nlhowell> so you have internal and external git repos
<nlhowell> giving different perspectives
<nlhowell> right?
<Joerg-Neo900> we don't (yet) publish the layout files in public ee git
<Joerg-Neo900> right
<nlhowell> and is it easy to decide which files are layout files?
<nlhowell> (i.e. which ones you don't want public [yet])
<Joerg-Neo900> that's the task at hand
<nlhowell> so still at the problem definition stage? you still need to decide how much to publish?
<Joerg-Neo900> and I want an default:reject strategy for that, defining which files to publish rather than which files to filter
<nlhowell> I think that's good
<nlhowell> but I think gitignore is the wrong tool
<Joerg-Neo900> this isn't gitignore
<nlhowell> ah
<Joerg-Neo900> it's a commit hook or sth
<nlhowell> ok, so run when you commit to the public repo?
<nlhowell> but isn't every public commit just a redacted commit to the internal repo?
<Joerg-Neo900> /srv/git/bin/cg-neo900 :: GIT_COMMITTER_NAME="Generated from internal repo" \ GIT_COMMITTER_EMAIL="nobody@neo900.org" \ ${0%-neo900} --exclude="**/*.kicad_pcb" \ --exclude="**/*.kicad_mod" --exclude="**/*.fpd" \ --exclude="**/*.mod" "$@"
<nlhowell> (my suspicion is that a filter-branch script is better)
<nlhowell> ah
<nlhowell> yeah, I don't really think that's a good strategy
<nlhowell> better im(h)o would be a script which processes each git commit to produce a new redacted repo
<Joerg-Neo900> doesn't matter, it's there and works
<nlhowell> ah, if it's already done and working
<nlhowell> that's different
<Joerg-Neo900> I just want to change the pragma from exclude to include
<nlhowell> but you want to swtich switch to a whitelist
<nlhowell> ok
<Joerg-Neo900> yes, exactly
<nlhowell> I see
<Joerg-Neo900> we have blacklist now, needs to become whitelist
<nlhowell> so I guess there is a program "cg"
<nlhowell> ?
<nlhowell> and this is a script that calls git?
<Joerg-Neo900> no idea, probably
<Joerg-Neo900> that's arcane git guts to me
<nlhowell> ${0%-neo900} on "cg-neo900" produces "cg"
<nlhowell> well, I think I can assist if I know what cg does
<Joerg-Neo900> atk helped implement that stuff, sorry I don't know details and I think I have no spare time to learn about it
<nlhowell> ok
<Joerg-Neo900> I suspect it's a script that is in git/hooks somewhere
<atk> yes, there's a cg program
<atk> I just realised, there's no --include but the opposite of --exclude looks to be --glob
<atk> but for the life of me I can't figure out why neither --exclude nor --glob works on my machine
<Joerg-Neo900> there's /srv/git/bin/cg-neo900 and /srv/git/bin/cg
<Joerg-Neo900> the katter is a bash script
<Joerg-Neo900> latter*
<Joerg-Neo900> usage() { cat <<EOF 1>&2 usage: $0 [-d] [--bare] [filter-options] src-repo dst-repo [-- range] EOF exit 1 }
<Joerg-Neo900> I suspect cg means copy git
<nlhowell> interesting
<atk> oh
<nlhowell> I would not have thought to use git-am for this
<atk> the --excludes are being passed to git-am
<atk> *facepalm*
<atk> and git log cares about refs
<nlhowell> I think atk and I /just/ had the same realization
<atk> no wonder nothing made sense
<atk> git am has an include :P
<atk> problem solved
<Joerg-Neo900> aaaa ... ha .oO(???) . . . err never mind, I don't wanna know ;-)
<Joerg-Neo900> as long as it works :-D
<atk> well, no,
<atk> wait
<atk> ok, that works
<atk> --include="*.sh" gave me two files in a repo
<atk> problem solved then
<nlhowell> \o/
<Joerg-Neo900> now we "only" need a list of files to actually publish?
<Joerg-Neo900> well, patterns
<atk> yes
<Joerg-Neo900> grat
<Joerg-Neo900> great even
<Joerg-Neo900> up to metacollin and wpwrak to decide which files / patterns those are
<Joerg-Neo900> I lack expertise in kicad for that
<Joerg-Neo900> but of course you're very welcome to help. Which files do you need?
<Joerg-Neo900> atk: maybe for a first iteration to solution you could prepare a list of files as exist in a 5 months old commit ?
<atk> sure
<Joerg-Neo900> then we only need to kick out a few that never should have been there
<atk> files or files with no extension and extensions?
<Joerg-Neo900> whatever needed for the --include concept
<Joerg-Neo900> prolly both
<Joerg-Neo900> some files have no unique extension
<Joerg-Neo900> like makefile, readme etc
<atk> dba9399879248fffa3b023cff37d4b3facd87c74 from start of april (last commit in april)
<atk> Date: Tue Apr 4 03:16:23 2017 +0200
<Joerg-Neo900> some dirs may get excluded/included no matter what's their file content
<Joerg-Neo900> loocks good
<atk> Joerg-Neo900: http://sprunge.us/DKTi
<Joerg-Neo900> many thanks!
<atk> lines without ./ are extensions, lines with ./ are files
<Joerg-Neo900> wpwrak: metacollin: ^^^ could you please review and remove the files that have any layout info from this list?
<atk> that's from ee-full by the way, .mod, .kicad_mod and .fpd are already excluded in the censored ee repo
jkepler1 has joined #neo900
<Joerg-Neo900> don't miss embedded layout info, if such thing exists in kicad
jkepler has quit [Ping timeout: 246 seconds]
jkepler1 is now known as jkepler
<Joerg-Neo900> ooh, so those should obviously get removed from the list already
<Joerg-Neo900> and of course all *brd
<atk> yes, those wouldn't appear on the list if I ran this on the ee repo as opposed to ee-full
<atk> I could probably re-create the ee repo with the excluded files if you need
<Joerg-Neo900> nah, that's a hzuge mess iirc
<Joerg-Neo900> basically nuking all history etc
<Joerg-Neo900> there's no critical data in the repos yet (until most recent commit maybe), that's why we sort it out now and not when it's too late
<Joerg-Neo900> ;-)
<Joerg-Neo900> _if_ you could undo the last sync to ee public repo and rerun it with the new list, that would be great
<atk> hmm
<atk> at this point the easiest thing to do would be to just replace it with a new repo with the script re-ran from the ground up
<atk> well... actually... I could remove whatever it is you want to remove from ee without affecting ee-full
<atk> but the filter script would need to be working already otherwise weird things might happen
<Joerg-Neo900> yes, of course this doesn't make sense before the filter is updated to new whitelist concept
<Joerg-Neo900> the "roll back" or delete http://neo900.org/git/ee/commit/?id=40cf88f15f6276bc41ab8d4c7965dc415f7a87d3 and run the filter thing again
<Joerg-Neo900> aiui
<Joerg-Neo900> or yes, probably replacing the whole repo should also work, after all that's what we did when we initially implemented that stuff
<atk> so all .lib files should be gone? or just that one?
<Joerg-Neo900> aiui the filter mechanism does a "diff" between commit A and latest/HEAD/whatever, and adds the patches to ee-public. setting commit-A to very first commit in ee-full should do for recreating the ee-public
<Joerg-Neo900> atk: that's way beyond my paygrade, I don't really grok the lib concept in kicad. Needs metacollin and wpwrak to discuss this
<Joerg-Neo900> let's start conservative and not include stuff we don't know for sure if it's ok
<Joerg-Neo900> after all that's the idea with the whitelist
<Joerg-Neo900> probably a good approach is to consider all those files dangerous that are new or grew in size remarkably in metacollin's branch
<Joerg-Neo900> we'll need to decide if we may publish all the new footprints eventually
<Joerg-Neo900> probably they are safe since with footprints only, no copycat can build a NeoN PCB
<Joerg-Neo900> i'd leave the decision on that to metacollin, he made the new footprints as "a gift" to the project :-D Many many thanks for that metacollin
ArturShaik has joined #neo900
ArturSha1 has quit [Ping timeout: 240 seconds]
xmn has joined #neo900
<wpwrak> Joerg-Neo900: if things got indiscriminately added that shouldn't go into the repo (git add ., git add * or such), then it's probably best to go back to the revision before that commit, get a list of files from then, remove all the unwanted ones (*), then add the new ones you actually want to have.
<wpwrak> (*) git rm --cached may be the command for this (never used it myself): https://stackoverflow.com/questions/1274057/how-to-make-git-forget-about-a-file-that-was-tracked-but-is-now-in-gitignore
<Joerg-Neo900> hi wpwrak! and many thanks for helping out
<Joerg-Neo900> wpwrak: could you have a look at the list of files / extensions that atk posted and pick the ones you think shall get published?
<Joerg-Neo900> [2017-09-16 Sat 16:57:31] <atk> Joerg-Neo900: http://sprunge.us/DKTi
<Joerg-Neo900> [2017-09-16 Sat 16:58:13] <Joerg-Neo900> wpwrak: metacollin: ^^^ could you please review and remove the files that have any layout info from this list?
<Joerg-Neo900> well, also remove obviously nonsensical stuff like backup files etc
<Joerg-Neo900> I think simply posting the patterns you want to see published here in one line is ok
<Joerg-Neo900> atk can pick them up
<Joerg-Neo900> I'll start with: ./hw/fp-lib-table ./hw/getsilego ./hw/Makefile ./hw/sortsheets .in .khotkeys ((( now noticing that for .in there's no file, so I can't pick the particular db.in file - someting is wrong with that list)))
<Joerg-Neo900> atk: ^^^
<Joerg-Neo900> also we probably want to include ./scripts/*
<atk> Joerg-Neo900: there's a ./hw/docdb.in
<Joerg-Neo900> could we simply look at the `ls -l` and make up globs to include from that?
<atk> find .
<atk> run that and if you want specific files, pick from there
<wpwrak> Joerg-Neo900: as i said, you probably just want to go back to before the bad commit, get the list from that time, then go back to the present, and clean up. if that happened recently, there's probably not a lot of really new files.
<Joerg-Neo900> yes, that's what I basically suggested before
<Joerg-Neo900> [2017-09-16 Sat 16:54:15] <Joerg-Neo900> atk: maybe for a first iteration to solution you could prepare a list of files as exist in a 5 months old commit ?
<Joerg-Neo900> [2017-09-16 Sat 16:54:45] <Joerg-Neo900> then we only need to kick out a few that never should have been there
<Joerg-Neo900> [2017-09-16 Sat 16:56:35] <Joerg-Neo900> some dirs may get excluded/included no matter what's their file content
<Joerg-Neo900> [2017-09-16 Sat 17:18:18] <Joerg-Neo900> probably a good approach is to consider all those files dangerous that are new or grew in size remarkably in metacollin's branch
<Joerg-Neo900> I'd hesitate to allow *.in, since we only have one file we know of that matches that pattern and that's docdb.in, so rather include that one file. Then there is dir /scripts/ which can get included as is, no matter which files are in there
<atk> Joerg-Neo900: http://sprunge.us/SHNJ - that commit
<Joerg-Neo900> yeah, forget about anything not in hw/
<Joerg-Neo900> wpwrak: right?
<Joerg-Neo900> aah well, doesn't hurt either, though hardly any new stuff will be there
<Joerg-Neo900> so yes, this is a very fine list we can compress by using some globs
<Joerg-Neo900> e.g. for *.sch
<Joerg-Neo900> no odea what's the deal with ./hw/models/475900001.stp and siblings ,step .STEP
<Joerg-Neo900> *.bck and *.csv no
<Joerg-Neo900> wpwrak: which are the footprint files? .dcm or .mod?
<Joerg-Neo900> and what's about the .lib ?
<Joerg-Neo900> hmm maybe somebody can put this on an etherpad?
<Joerg-Neo900> ravelo: could you help?
<crox> Joerg-Neo900, if I remember correctly, the .lib file is what you need for the schema editor
<ravelo> sure
<crox> and mod would be for the layout editor
<Joerg-Neo900> crox: yep, sounds about right
<crox> wrl would be for the 3d view
<ravelo> i'd start a new etherpad simply and post the link?
<Joerg-Neo900> yep
<Joerg-Neo900> ta :-)
<ravelo> :)
<Joerg-Neo900> I can't paste the content without lines getting concatenated :-/
<atk> Joerg-Neo900: use find
<Joerg-Neo900> yeah and then?
<atk> wait what?
<atk> weird
<Joerg-Neo900> etherpad concatenates lines
<Joerg-Neo900> nfc why
<Joerg-Neo900> now what's .dcm ?
ArturShaik has quit [Read error: Connection reset by peer]
ArturShaik has joined #neo900
<Joerg-Neo900> ok, could you please have a look at https://public.etherpad-mozilla.org/p/Neo900GitDiscussion - particularly the 2 blocks marked "## <TODO>"
jonsger has quit [Quit: jonsger]
jonsger has joined #neo900
jonsger has quit [Remote host closed the connection]
jonsger has joined #neo900
<Joerg-Neo900> atk: refarding concept, could we place a '.publish' hidden file in ee-full that contains that list https://public.etherpad-mozilla.org/p/Neo900GitDiscussion ?
<atk> Joerg-Neo900: it makes things a bit complicated
<atk> please try to narrow as many things to just a prefix/suffix if you can
<Joerg-Neo900> I hoped it simplifies, if that's not the case then never mind
<atk> I don't want the script to run into problems with too many arguments and whatnot
<atk> there's no way of making git apply use it directly
<atk> so I would need to write a script to parse the file and turn it into a command line
<Joerg-Neo900> yes, that was the idea. However a whitelist is as long as it is
<atk> you can also do foo/*.bla if you only want *.bla from a specific path
<Joerg-Neo900> (to narrow down as much as possible/reasonable)
err0r3o3 has joined #neo900
<Joerg-Neo900> I hope U narrowed it down as much as possible now, and in an unambiguous manner
<Joerg-Neo900> I*
err0r3o3_ has quit [Ping timeout: 240 seconds]
pagurus` has quit [Ping timeout: 240 seconds]
knttl has quit [Ping timeout: 240 seconds]
ArturShaik has quit [Ping timeout: 246 seconds]
knttl has joined #neo900
<Joerg-Neo900> atk: 22 tokens
<Joerg-Neo900> I'd still love if - instead of "--include foo --include bar" - we could do something like " `while read pat; do echo -n " --include $pat"; done <ee-repo/.publish` "
<Joerg-Neo900> as in >><atk> so I would need to write a script to parse the file and turn it into a command line<<, in /srv/git/bin/cg-neo900 or /srv/git/bin/cg
arnaudj has quit [Ping timeout: 264 seconds]
<Joerg-Neo900> AIUI you want to edit /srv/git/bin/cg-neo900 to replace the >> ${0%-neo900} --exclude="**/*.kicad_pcb" \ --exclude="**/*.kicad_mod" --exclude="**/*.fpd" \ --exclude="**/*.mod" "$@"<< part by "--include ...", right? You maybe can use that "while read..." snippet in there instead of hardcoding the globs in place
<Joerg-Neo900> atk: ^^^
<Joerg-Neo900> please everybody review https://public.etherpad-mozilla.org/p/Neo900GitDiscussion if there are any files commented out you'd need in publoc git, or any that shouldn't be there are left over in the include list
err0r3o3 has quit [Quit: err0r3o3]
err0r3o3 has joined #neo900
_whitelogger has joined #neo900
jcarpenter2 has quit [Ping timeout: 240 seconds]
pagurus has joined #neo900
xmn has quit [Quit: Leaving.]
<Joerg-Neo900> bencoh: now I finally get your laughing about new git clone. I finally realized that my master branch *stays* in defunct status since I can't pull because of the conflicting files and I can't push any new stuff either obviously when I'm not in sync
<Joerg-Neo900> so the last commit is rather unfortunate
<Joerg-Neo900> atk: ^^^
<atk> sorry, I was away
<Joerg-Neo900> bp
<Joerg-Neo900> was not until 2 min ago U noticed there's actually a _problem_ now
<Joerg-Neo900> *I*
<Joerg-Neo900> and np*
<Joerg-Neo900> does a git merge bypass gitignore?
<Joerg-Neo900> the gitignore in the branch that receives the merger
<Joerg-Neo900> since aiui this seems what has ahppened
<Joerg-Neo900> hmm or not, probably a git add * simply added a lot of files that are temporary and shouldn't be in repo
pagurus has quit [Ping timeout: 240 seconds]
<Joerg-Neo900> I lack any clue how to fix this
<pigeons> look at git rebase
<Joerg-Neo900> needs fix in repo, those files shouldn't be there to start with
<pigeons> also git push --force
<pigeons> but rebase is much nicer
<Joerg-Neo900> I won't touch that stuff, I'm the one person with the least clue about git
<pigeons> if its stuff not committed just git stash
<Joerg-Neo900> I can tell that last commit that actually was a branch merge introduced those files, and it better had not
chomwitt has joined #neo900
<Joerg-Neo900> and those file were not puhed by me
<Joerg-Neo900> again, those files don't belong into the repo
<Joerg-Neo900> they need to get removed from there
<Joerg-Neo900> the complete last commit better gets rolled back
pagurus has joined #neo900
<atk> Joerg-Neo900: gitignore is only for things git flags as untracked
<Joerg-Neo900> [2017-09-16 Sat 18:00:21] <wpwrak> Joerg-Neo900: if things got indiscriminately added that shouldn't go into the repo (git add ., git add * or such), then it's probably best to go back to the revision before that commit, get a list of files from then, remove all the unwanted ones (*), then add the new ones you actually want to have.
<atk> I can't get that script working right now but I'll have a look at it a bit later today
<Joerg-Neo900> atk: this is about ee-full
<Joerg-Neo900> unrelated to the ee public and filtering
jcarpenter2 has joined #neo900
<Joerg-Neo900> caused by merge-branch mc_* commit a few days ago
<Joerg-Neo900> I also need to roll back a local commit I did, but that's a minor problem i'll worry about later on after we fixed the repo based problem
<Joerg-Neo900> I just noticed I can't push since I failed to pull before I did the edits and the commit locally. And I can't pull because of that repo based file-conflict problem - I also don't want to pull those files
<Joerg-Neo900> whatever it takes, those http://paste.ubuntu.com/25550703 files must vanish from ee-full repo
knttl has quit [Ping timeout: 264 seconds]
<Joerg-Neo900> [2017-09-16 Sat 18:00:47] <wpwrak> (*) git rm --cached may be the command for this (never used it myself): https://stackoverflow.com/questions/1274057/how-to-make-git-forget-about-a-file-that-was-tracked-but-is-now-in-gitignore
knttl has joined #neo900
chomwitt has quit [Quit: WeeChat 1.0.1]
<Joerg-Neo900> git log of my local master: http://paste.ubuntu.com/25550870 git log of the more recent (actually up to date) mc_ branch: http://paste.ubuntu.com/25550887 conflicting files (from git pull): http://paste.ubuntu.com/25550703
<Joerg-Neo900> the mc_ branch merge needs to get cleaned from those files
<Joerg-Neo900> I need to add that mc_ branch: http://paste.ubuntu.com/25550887 got merged to master, I probably should have provided a git log of that new master/HEAD instead of the mc_ branch
<Joerg-Neo900> and it's that merge on master that needs to get cleaned from those files
<Joerg-Neo900> I tried to find out about showing remote log instead of local. git help log isn't rally helping, it's just insane amount of options but none for the purpose to show log of a remote branch not yet pulled
chomwitt has joined #neo900
* Joerg-Neo900 starts slowly drifting into insanity and muses which monsters to rename to "Git". Maybe Grendel. Or Godzilla?
<Joerg-Neo900> jr@saturn:~/Dokumente/Neo900/projbin/neo900-proj/mc-ee/hw> git checkout master
<Joerg-Neo900> error: Your local changes to the following files would be overwritten by checkout:
<Joerg-Neo900> hw/docdb.out
<Joerg-Neo900> point being: this is a generated file, I didn't do anything faintly known as "edit" in this branch
<crox> https://xkcd.com/1597/ <= my thoughts exactly :o)
<Joerg-Neo900> yep :-P
<Joerg-Neo900> git update-index --assume-unchanged <file> This IS the real answer. Awesome actually, very simple, doesn't pollute git status and actually very intuitive. Thanks. – Pablo Olmos de Aguilera C https://stackoverflow.com/questions/1274057/how-to-make-git-forget-about-a-file-that-was-tracked-but-is-now-in-gitignore
<Joerg-Neo900> alas all this can get done more easily by somebody who alread *has* the file, while for me git pull fails
<Joerg-Neo900> probably even needs to get done by the one who introduced <file> to start with, so metacollin on hus mc_ branch, then merge again to master. ***AIUI***
<Joerg-Neo900> wpwrak: ^^^ comments?
<Joerg-Neo900> what we learned: NEVER do git add *
<Joerg-Neo900> i'm tempted to restore backup of the day before that commit
jonsger has quit [Ping timeout: 260 seconds]
Pali has quit [Remote host closed the connection]
cc___ has quit [Ping timeout: 246 seconds]
jkepler has quit [Ping timeout: 240 seconds]
pagurus has quit [Ping timeout: 240 seconds]
pagurus has joined #neo900
ravelo has quit [Quit: Connection closed for inactivity]
pagurus` has joined #neo900
pagurus has quit [Ping timeout: 240 seconds]
<Joerg-Neo900> I wonder if that is a correct way to handle the situation: http://paste.ubuntu.com/25551848
<Joerg-Neo900> and what will happen if I push now
<Joerg-Neo900> okm I guess I messed up as thoroughly as expected. So let's call it a day :-S http://paste.ubuntu.com/25551966
<Joerg-Neo900> git is like doctor curing a disease of patient: you got 200 options in remedies / medicaments. Chances to pick the right one are up to Murphy, and when you picked the wrong one your chances to find the right cure for that wrong medicament's effects are ... let's say they are low
<atk> hahaha
<atk> I would rather say it's like a very complicated bomb if you're not a bomb defusal expert
<atk> you have 1 way of defusing it and 199 ways of blowing it up