TEXT   90
base ref
Guest on 8th February 2023 12:42:39 PM


  1. base_ref = base
  2. base_ref = args.revision
  3.         g = subprocess.Popen(["git", "ls-tree", "-r", base_ref, "--name-only", "menu"], stdout=subprocess.PIPE, encoding="utf-8")
  4.         flist, _ = g.communicate()
  5.         for fn in flist.splitlines():
  6.                 g = subprocess.Popen(["git", "show", "%s:%s" % (base_ref, fn)], stdout=subprocess.PIPE, encoding="utf-8")
  7.                 all[fn] = json.load(g.stdout)

Raw Paste

Login or Register to edit or fork this paste. It's free.